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

adding new files in media pinkeye #5

Open
wants to merge 4 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
33 changes: 33 additions & 0 deletions config/install/core.entity_form_display.media.audio.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
langcode: und
status: true
dependencies:
config:
- field.field.media.audio.audio
- media_entity.bundle.audio
module:
- file
id: media.audio.default
targetEntityType: media
bundle: audio
mode: default
content:
name:
type: string_textfield
weight: 0
settings:
size: 60
placeholder: ''
third_party_settings: { }
audio:
type: file_generic
weight: 1
settings:
progress_indicator: throbber
third_party_settings: { }
created:
type: datetime_timestamp
weight: 3
settings: { }
third_party_settings: { }
hidden: { }
third_party_settings: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
langcode: und
status: true
dependencies:
config:
- core.entity_view_mode.media.library_thumbnail
- field.field.media.audio.audio
- media_entity.bundle.audio
module:
- file
id: media.audio.library_thumbnail
label: null
targetEntityType: media
bundle: audio
mode: library_thumbnail
content:
name:
type: string
weight: 0
settings: { }
third_party_settings: { }
label: hidden
thumbnail:
type: image
weight: 1
settings:
image_style: media_library
image_link: ''
third_party_settings: { }
label: hidden
hidden:
image: true
uid: true
created: true
category: true
third_party_settings: { }
26 changes: 26 additions & 0 deletions config/install/field.field.media.audio.audio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
langcode: und
status: true
dependencies:
config:
- field.storage.media.audio
- media_entity.bundle.audio
module:
- file
id: media.audio.audio
field_name: audio
entity_type: media
bundle: audio
label: Audio
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
file_directory: ''
file_extensions: 'mp3'
max_filesize: '64 MB'
description_field: 0
handler: default
handler_settings: { }
field_type: file
18 changes: 18 additions & 0 deletions config/install/field.storage.media.audio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
langcode: und
status: true
dependencies:
module:
- file
- media_entity
id: media.audio
field_name: audio
entity_type: media
type: file
settings:
uri_scheme: private
module: file
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
12 changes: 12 additions & 0 deletions config/install/media_entity.bundle.audio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
langcode: und
status: true
dependencies:
module:
- media_entity_audio
id: audio
label: audio
description: 'Audio file .'
type: audio
type_configuration:
source_field: audio
field_map: { }