Skip to content
This repository has been archived by the owner on Jan 5, 2018. It is now read-only.

Provide default image bundle #10

Open
wants to merge 2 commits into
base: 8.x-1.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
langcode: und
status: true
dependencies:
config:
- field.storage.media.image
- media_entity.bundle.image
module:
- image
id: media.image.image
field_name: image
entity_type: media
bundle: image
label: Image
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
file_directory: ''
file_extensions: 'png gif jpg jpeg'
max_filesize: ''
max_resolution: ''
min_resolution: ''
alt_field: false
alt_field_required: false
title_field: false
title_field_required: false
default_image:
fid: 0
alt: ''
title: ''
width: null
height: null
handler: default
handler_settings: { }
field_type: image
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
langcode: und
status: true
dependencies:
module:
- image
- media_entity
id: media.image
field_name: image
entity_type: media
type: image
settings:
uri_scheme: public
default_image:
fid: 0
alt: ''
title: ''
width: null
height: null
target_type: file
display_field: false
display_default: false
target_bundle: null
module: image
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
langcode: und
status: true
dependencies:
module:
- media_entity_image
id: image
label: Image
description: 'Locally hosted images.'
type: image
type_configuration:
source_field: image
gather_exif: '0'
field_map: { }
7 changes: 7 additions & 0 deletions media_entity_image_demo/media_entity_image_demo.info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Media entity image demo
description: 'Basic configuration for image media entities.'
type: module
package: Media
core: 8.x
dependencies:
- media_entity_image