diff --git a/drupal10/config/core.entity_form_display.media.remote_video.default.yml b/drupal10/config/core.entity_form_display.media.remote_video.default.yml new file mode 100644 index 0000000..9d29357 --- /dev/null +++ b/drupal10/config/core.entity_form_display.media.remote_video.default.yml @@ -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 diff --git a/drupal10/config/core.entity_form_display.media.remote_video.media_library.yml b/drupal10/config/core.entity_form_display.media.remote_video.media_library.yml new file mode 100644 index 0000000..5bda07b --- /dev/null +++ b/drupal10/config/core.entity_form_display.media.remote_video.media_library.yml @@ -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 diff --git a/drupal10/config/core.entity_view_display.media.image.default.yml b/drupal10/config/core.entity_view_display.media.image.default.yml index 01db88d..7ac7bc3 100644 --- a/drupal10/config/core.entity_view_display.media.image.default.yml +++ b/drupal10/config/core.entity_view_display.media.image.default.yml @@ -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: { } diff --git a/drupal10/config/core.entity_view_display.media.image.media_library.yml b/drupal10/config/core.entity_view_display.media.image.media_library.yml index 147af11..259079f 100644 --- a/drupal10/config/core.entity_view_display.media.image.media_library.yml +++ b/drupal10/config/core.entity_view_display.media.image.media_library.yml @@ -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: { } diff --git a/drupal10/config/core.entity_view_display.media.remote_video.default.yml b/drupal10/config/core.entity_view_display.media.remote_video.default.yml new file mode 100644 index 0000000..60ab004 --- /dev/null +++ b/drupal10/config/core.entity_view_display.media.remote_video.default.yml @@ -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 diff --git a/drupal10/config/core.entity_view_display.media.remote_video.media_library.yml b/drupal10/config/core.entity_view_display.media.remote_video.media_library.yml new file mode 100644 index 0000000..b6feaca --- /dev/null +++ b/drupal10/config/core.entity_view_display.media.remote_video.media_library.yml @@ -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 diff --git a/drupal10/config/field.field.media.remote_video.field_media_oembed_video.yml b/drupal10/config/field.field.media.remote_video.field_media_oembed_video.yml new file mode 100644 index 0000000..0eb88fb --- /dev/null +++ b/drupal10/config/field.field.media.remote_video.field_media_oembed_video.yml @@ -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 diff --git a/drupal10/config/field.storage.media.field_media_oembed_video.yml b/drupal10/config/field.storage.media.field_media_oembed_video.yml new file mode 100644 index 0000000..3e16611 --- /dev/null +++ b/drupal10/config/field.storage.media.field_media_oembed_video.yml @@ -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 diff --git a/drupal10/config/media.type.remote_video.yml b/drupal10/config/media.type.remote_video.yml new file mode 100644 index 0000000..f08d351 --- /dev/null +++ b/drupal10/config/media.type.remote_video.yml @@ -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