mirror of
https://github.com/tag1consulting/d7_to_d10_migration.git
synced 2025-01-26 11:14:35 +00:00
Apply remote_video_media_type recipe
This commit is contained in:
parent
c448fff43d
commit
fe6ef34767
9 changed files with 210 additions and 2 deletions
|
@ -0,0 +1,56 @@
|
|||
uuid: 1416c14d-c8c2-4d18-b6ea-497e38554a7a
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.media.remote_video.field_media_oembed_video
|
||||
- media.type.remote_video
|
||||
module:
|
||||
- media
|
||||
- path
|
||||
_core:
|
||||
default_config_hash: pM8mGlwfpvfG_y5tZn0lGAXFLXz2_yKkL7MvWZsRqdA
|
||||
id: media.remote_video.default
|
||||
targetEntityType: media
|
||||
bundle: remote_video
|
||||
mode: default
|
||||
content:
|
||||
created:
|
||||
type: datetime_timestamp
|
||||
weight: 10
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
field_media_oembed_video:
|
||||
type: oembed_textfield
|
||||
weight: 0
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
path:
|
||||
type: path
|
||||
weight: 30
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
status:
|
||||
type: boolean_checkbox
|
||||
weight: 100
|
||||
region: content
|
||||
settings:
|
||||
display_label: true
|
||||
third_party_settings: { }
|
||||
uid:
|
||||
type: entity_reference_autocomplete
|
||||
weight: 5
|
||||
region: content
|
||||
settings:
|
||||
match_operator: CONTAINS
|
||||
match_limit: 10
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
hidden:
|
||||
name: true
|
|
@ -0,0 +1,22 @@
|
|||
uuid: de79907d-8580-40cd-9cb7-bc4dcb326a66
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- core.entity_form_mode.media.media_library
|
||||
- field.field.media.remote_video.field_media_oembed_video
|
||||
- media.type.remote_video
|
||||
_core:
|
||||
default_config_hash: TBgPW-uaXRaICBwLaVc16rXpRiLSknDIdF9q0XL7qso
|
||||
id: media.remote_video.media_library
|
||||
targetEntityType: media
|
||||
bundle: remote_video
|
||||
mode: media_library
|
||||
content: { }
|
||||
hidden:
|
||||
created: true
|
||||
field_media_oembed_video: true
|
||||
name: true
|
||||
path: true
|
||||
status: true
|
||||
uid: true
|
|
@ -19,8 +19,8 @@ content:
|
|||
type: image
|
||||
label: visually_hidden
|
||||
settings:
|
||||
image_style: large
|
||||
image_link: ''
|
||||
image_style: large
|
||||
image_loading:
|
||||
attribute: lazy
|
||||
third_party_settings: { }
|
||||
|
|
|
@ -20,8 +20,8 @@ content:
|
|||
type: image
|
||||
label: hidden
|
||||
settings:
|
||||
image_style: medium
|
||||
image_link: ''
|
||||
image_style: medium
|
||||
image_loading:
|
||||
attribute: lazy
|
||||
third_party_settings: { }
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
uuid: 29a2495e-ef57-495e-bb74-579b2a18b737
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.media.remote_video.field_media_oembed_video
|
||||
- media.type.remote_video
|
||||
module:
|
||||
- media
|
||||
_core:
|
||||
default_config_hash: ZdPcl2hPxl5pgv3pI-07R7h51OjeUeKJTy-ab1NfM34
|
||||
id: media.remote_video.default
|
||||
targetEntityType: media
|
||||
bundle: remote_video
|
||||
mode: default
|
||||
content:
|
||||
field_media_oembed_video:
|
||||
type: oembed
|
||||
label: hidden
|
||||
settings:
|
||||
max_width: 0
|
||||
max_height: 0
|
||||
loading:
|
||||
attribute: lazy
|
||||
third_party_settings: { }
|
||||
weight: 0
|
||||
region: content
|
||||
hidden:
|
||||
created: true
|
||||
name: true
|
||||
thumbnail: true
|
||||
uid: true
|
|
@ -0,0 +1,34 @@
|
|||
uuid: facb6a44-8590-49b7-a096-6c90f8d9bdf2
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- core.entity_view_mode.media.media_library
|
||||
- field.field.media.remote_video.field_media_oembed_video
|
||||
- image.style.medium
|
||||
- media.type.remote_video
|
||||
module:
|
||||
- image
|
||||
_core:
|
||||
default_config_hash: PGGoP-hVkXe_S-GiJRAub4PHDu0KhMExylclrqjdJb4
|
||||
id: media.remote_video.media_library
|
||||
targetEntityType: media
|
||||
bundle: remote_video
|
||||
mode: media_library
|
||||
content:
|
||||
thumbnail:
|
||||
type: image
|
||||
label: hidden
|
||||
settings:
|
||||
image_link: ''
|
||||
image_style: medium
|
||||
image_loading:
|
||||
attribute: lazy
|
||||
third_party_settings: { }
|
||||
weight: 0
|
||||
region: content
|
||||
hidden:
|
||||
created: true
|
||||
field_media_oembed_video: true
|
||||
name: true
|
||||
uid: true
|
|
@ -0,0 +1,21 @@
|
|||
uuid: a3711286-7435-4555-bbc3-bf9c888e8530
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.media.field_media_oembed_video
|
||||
- media.type.remote_video
|
||||
_core:
|
||||
default_config_hash: Eo4HHenV5iZat_kEWgr_wydD3TgwURMCzwt-7qIEyoM
|
||||
id: media.remote_video.field_media_oembed_video
|
||||
field_name: field_media_oembed_video
|
||||
entity_type: media
|
||||
bundle: remote_video
|
||||
label: 'Video URL'
|
||||
description: ''
|
||||
required: true
|
||||
translatable: true
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: string
|
|
@ -0,0 +1,23 @@
|
|||
uuid: 665bfc5c-bdcc-4490-8ab0-b50ddf05fe19
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- media
|
||||
_core:
|
||||
default_config_hash: cNf_852Dq-fNnSaMI4LxL-J6N7bLkHuDbD9EUqOn4_U
|
||||
id: media.field_media_oembed_video
|
||||
field_name: field_media_oembed_video
|
||||
entity_type: media
|
||||
type: string
|
||||
settings:
|
||||
max_length: 255
|
||||
case_sensitive: false
|
||||
is_ascii: false
|
||||
module: core
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
20
drupal10/config/media.type.remote_video.yml
Normal file
20
drupal10/config/media.type.remote_video.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
uuid: 3883d3b4-34cb-43ca-a7c4-e2661f1f446d
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
_core:
|
||||
default_config_hash: hIBTnDGgDKnCiP6HUZm1m7600DHUEpC6FN3LQ4sUgZ4
|
||||
id: remote_video
|
||||
label: 'Remote video'
|
||||
description: 'A remotely hosted video from YouTube or Vimeo.'
|
||||
source: 'oembed:video'
|
||||
queue_thumbnail_downloads: false
|
||||
new_revision: true
|
||||
source_configuration:
|
||||
source_field: field_media_oembed_video
|
||||
thumbnails_directory: 'public://oembed_thumbnails/[date:custom:Y-m]'
|
||||
providers:
|
||||
- YouTube
|
||||
- Vimeo
|
||||
field_map:
|
||||
title: name
|
Loading…
Reference in a new issue