From 904b3127d8692b6d2da3cff3aaa416d7e4a717b9 Mon Sep 17 00:00:00 2001 From: Brian Gilbert Date: Tue, 28 Jun 2022 15:07:00 +1000 Subject: [PATCH] chore(#17): improve link checker and linkit, configure asymmetric translation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …ion for paragraphs --- drupal/composer.json | 11 +++ drupal/composer.lock | 63 ++++++++++++- ...ty_form_display.media.document.default.yml | 5 + ...m_display.media.document.media_library.yml | 5 + ...ntity_form_display.media.image.default.yml | 5 + ...form_display.media.image.media_library.yml | 5 + drupal/config/sync/core.extension.yml | 1 + ....field.media.image.field_media_caption.yml | 2 +- ....media.image.field_media_content_owner.yml | 2 +- ...ield.media.image.field_media_copyright.yml | 2 +- ...ld.media.image.field_media_description.yml | 2 +- ...ld.media.image.field_media_usage_terms.yml | 2 +- ...d.media.video.field_media_oembed_video.yml | 2 +- ...field.field.node.article.field_content.yml | 5 +- .../field.field.node.event.field_content.yml | 3 - .../field.field.node.page.field_content.yml | 5 +- .../field.field.paragraph.card.field_link.yml | 3 + ...ld.paragraph.card.field_text_formatted.yml | 2 +- ...field.field.paragraph.card.field_title.yml | 2 +- ...paragraph.entity_reference.field_title.yml | 2 +- ...ield.paragraph.jumbotron.field_content.yml | 2 +- .../field.field.paragraph.link.field_link.yml | 3 + ...ield.field.paragraph.media.field_media.yml | 2 +- ...ld.field.paragraph.section.field_title.yml | 2 +- ...nguage.content_settings.media.document.yml | 9 +- .../language.content_settings.media.image.yml | 9 +- .../language.content_settings.media.video.yml | 7 ++ .../sync/linkit.linkit_profile.default.yml | 8 +- drupal/config/sync/linkychecker.settings.yml | 2 +- drupal/config/sync/views.view.content.yml | 66 +++++++++++++ drupal/config/sync/views.view.media.yml | 66 +++++++++++++ .../config/sync/views.view.media_library.yml | 94 ++++++++++++++++++- 32 files changed, 365 insertions(+), 34 deletions(-) diff --git a/drupal/composer.json b/drupal/composer.json index abada0a0..533a15d6 100644 --- a/drupal/composer.json +++ b/drupal/composer.json @@ -67,6 +67,7 @@ "drupal/memcache": "2.3.0", "drupal/node_edit_protection": "1.0.0", "drupal/oembed_providers": "2.0.4", + "drupal/paragraphs_asymmetric_translation_widgets": "^1.0", "drupal/paragraphs_ee": "2.0.3", "drupal/pathauto": "1.10.0", "drupal/permissions_filter": "1.2.0", @@ -203,11 +204,21 @@ "https://www.drupal.org/projectc/layout_paragraphs/issues/3214406#comment-14425196": "https://git.drupalcode.org/project/layout_paragraphs/-/merge_requests/70.diff", "https://www.drupal.org/project/layout_paragraphs/issues/3265794": "https://git.drupalcode.org/project/layout_paragraphs/-/merge_requests/84.diff" }, + "drupal/linkit": { + "https://www.drupal.org/project/linkit/issues/3022261#comment-14257900": "https://www.drupal.org/files/issues/2021-10-15/3022261_linkit_add-better-support-for-linking-to-anchors_22.patch" + }, "drupal/metatag": { "https://www.drupal.org/project/metatag/issues/2945817#comment-14420231": "https://www.drupal.org/files/issues/2022-02-21/metatag-n2945817-143.patch" }, "drupal/node_edit_protection": { "Triggers if button used instead of input https://www.drupal.org/project/node_edit_protection/issues/3208719": "./patch/3208719.diff" + }, + "drupal/paragraphs": { + "https://www.drupal.org/project/paragraphs/issues/2904705#comment-13918715": "https://www.drupal.org/files/issues/2020-11-27/paragraphs_support_asym_translations-2904705-122.patch" + }, + "drupal/paragraphs_asymmetric_translation_widgets": { + "https://www.drupal.org/project/paragraphs_asymmetric_translation_widgets/issues/3175491#comment-13891174": "https://www.drupal.org/files/issues/2020-11-03/3175491-2.patch", + "https://www.drupal.org/project/paragraphs_asymmetric_translation_widgets/issues/3180118#comment-14188544": "https://www.drupal.org/files/issues/2021-08-12/3180118-7.patch" } } } diff --git a/drupal/composer.lock b/drupal/composer.lock index 17184336..9cbab2b2 100644 --- a/drupal/composer.lock +++ b/drupal/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e65dc3afbe4003bdc5ddc952c7dd18d3", + "content-hash": "6f71ca2ed45f4fac19eb3b5e5c04a05d", "packages": [ { "name": "asm89/stack-cors", @@ -5355,6 +5355,67 @@ "source": "https://git.drupalcode.org/project/paragraphs" } }, + { + "name": "drupal/paragraphs_asymmetric_translation_widgets", + "version": "1.0.0-beta4", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/paragraphs_asymmetric_translation_widgets.git", + "reference": "8.x-1.0-beta4" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/paragraphs_asymmetric_translation_widgets-8.x-1.0-beta4.zip", + "reference": "8.x-1.0-beta4", + "shasum": "6c524f787a25654b5d2c43afd92e3766ff1ba532" + }, + "require": { + "drupal/core": "^8 || ^9", + "drupal/paragraphs": "~1.3" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-1.0-beta4", + "datestamp": "1594979926", + "security-coverage": { + "status": "not-covered", + "message": "Beta releases are not covered by Drupal security advisories." + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0" + ], + "authors": [ + { + "name": "Grayle", + "homepage": "https://www.drupal.org/user/3145497" + }, + { + "name": "efpapado", + "homepage": "https://www.drupal.org/user/1009348" + }, + { + "name": "esolitos", + "homepage": "https://www.drupal.org/user/1567500" + }, + { + "name": "penyaskito", + "homepage": "https://www.drupal.org/user/959536" + }, + { + "name": "weseze", + "homepage": "https://www.drupal.org/user/417521" + } + ], + "description": "Extends the paragraphs field widgets to support asymmetric translations.", + "homepage": "https://www.drupal.org/project/paragraphs_asymmetric_translation_widgets", + "support": { + "source": "https://git.drupalcode.org/project/paragraphs_asymmetric_translation_widgets" + } + }, { "name": "drupal/paragraphs_ee", "version": "2.0.3", diff --git a/drupal/config/sync/core.entity_form_display.media.document.default.yml b/drupal/config/sync/core.entity_form_display.media.document.default.yml index d028f202..eb4c5c26 100644 --- a/drupal/config/sync/core.entity_form_display.media.document.default.yml +++ b/drupal/config/sync/core.entity_form_display.media.document.default.yml @@ -90,6 +90,11 @@ content: settings: display_label: true third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } uid: type: entity_reference_autocomplete weight: 7 diff --git a/drupal/config/sync/core.entity_form_display.media.document.media_library.yml b/drupal/config/sync/core.entity_form_display.media.document.media_library.yml index 6507ed04..0967e6d8 100644 --- a/drupal/config/sync/core.entity_form_display.media.document.media_library.yml +++ b/drupal/config/sync/core.entity_form_display.media.document.media_library.yml @@ -64,6 +64,11 @@ content: size: 60 placeholder: '' third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } hidden: created: true langcode: true diff --git a/drupal/config/sync/core.entity_form_display.media.image.default.yml b/drupal/config/sync/core.entity_form_display.media.image.default.yml index ddeec91c..149ab70a 100644 --- a/drupal/config/sync/core.entity_form_display.media.image.default.yml +++ b/drupal/config/sync/core.entity_form_display.media.image.default.yml @@ -104,6 +104,11 @@ content: settings: display_label: true third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } uid: type: entity_reference_autocomplete weight: 8 diff --git a/drupal/config/sync/core.entity_form_display.media.image.media_library.yml b/drupal/config/sync/core.entity_form_display.media.image.media_library.yml index 908c8c45..5af00c73 100644 --- a/drupal/config/sync/core.entity_form_display.media.image.media_library.yml +++ b/drupal/config/sync/core.entity_form_display.media.image.media_library.yml @@ -76,6 +76,11 @@ content: size: 60 placeholder: '' third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } hidden: created: true langcode: true diff --git a/drupal/config/sync/core.extension.yml b/drupal/config/sync/core.extension.yml index 229453b4..465c50e0 100644 --- a/drupal/config/sync/core.extension.yml +++ b/drupal/config/sync/core.extension.yml @@ -98,6 +98,7 @@ module: oembed_providers: 0 options: 0 page_cache: 0 + paragraphs_asymmetric_translation_widgets: 0 paragraphs_features: 0 paragraphs_library: 0 paragraphs_type_permissions: 0 diff --git a/drupal/config/sync/field.field.media.image.field_media_caption.yml b/drupal/config/sync/field.field.media.image.field_media_caption.yml index 715e5bcf..ab4f1948 100644 --- a/drupal/config/sync/field.field.media.image.field_media_caption.yml +++ b/drupal/config/sync/field.field.media.image.field_media_caption.yml @@ -18,7 +18,7 @@ bundle: image label: Caption description: "Alt text is a description of what an image shows, eg. 'Small dog'. \r\nThe caption should convey information as to why you have placed the image, it usually include image title and credits, who is shown in the photo, etc. eg. 'Rufus the Corgi as a puppy. Photo taken by Brian Gilbert'" required: true -translatable: false +translatable: true default_value: { } default_value_callback: '' settings: { } diff --git a/drupal/config/sync/field.field.media.image.field_media_content_owner.yml b/drupal/config/sync/field.field.media.image.field_media_content_owner.yml index 224c1e33..ad8a56a9 100644 --- a/drupal/config/sync/field.field.media.image.field_media_content_owner.yml +++ b/drupal/config/sync/field.field.media.image.field_media_content_owner.yml @@ -12,7 +12,7 @@ bundle: image label: 'Content owner' description: 'Enter the person or role that is primary contact regarding this image.' required: false -translatable: false +translatable: true default_value: { } default_value_callback: '' settings: { } diff --git a/drupal/config/sync/field.field.media.image.field_media_copyright.yml b/drupal/config/sync/field.field.media.image.field_media_copyright.yml index edff2926..71d54260 100644 --- a/drupal/config/sync/field.field.media.image.field_media_copyright.yml +++ b/drupal/config/sync/field.field.media.image.field_media_copyright.yml @@ -12,7 +12,7 @@ bundle: image label: Copyright description: '' required: false -translatable: false +translatable: true default_value: { } default_value_callback: '' settings: { } diff --git a/drupal/config/sync/field.field.media.image.field_media_description.yml b/drupal/config/sync/field.field.media.image.field_media_description.yml index 8c618480..ffa02403 100644 --- a/drupal/config/sync/field.field.media.image.field_media_description.yml +++ b/drupal/config/sync/field.field.media.image.field_media_description.yml @@ -12,7 +12,7 @@ bundle: image label: Description description: 'Enter a very short description to help editors find relevant media.' required: true -translatable: false +translatable: true default_value: { } default_value_callback: '' settings: { } diff --git a/drupal/config/sync/field.field.media.image.field_media_usage_terms.yml b/drupal/config/sync/field.field.media.image.field_media_usage_terms.yml index 58e693f9..e843dcc1 100644 --- a/drupal/config/sync/field.field.media.image.field_media_usage_terms.yml +++ b/drupal/config/sync/field.field.media.image.field_media_usage_terms.yml @@ -12,7 +12,7 @@ bundle: image label: 'Usage Terms & Conditions' description: 'Please describe any limitations in usage of this image.' required: false -translatable: false +translatable: true default_value: { } default_value_callback: '' settings: { } diff --git a/drupal/config/sync/field.field.media.video.field_media_oembed_video.yml b/drupal/config/sync/field.field.media.video.field_media_oembed_video.yml index 093520ff..b35806b3 100644 --- a/drupal/config/sync/field.field.media.video.field_media_oembed_video.yml +++ b/drupal/config/sync/field.field.media.video.field_media_oembed_video.yml @@ -12,7 +12,7 @@ bundle: video label: 'Remote video URL' description: '' required: true -translatable: true +translatable: false default_value: { } default_value_callback: '' settings: { } diff --git a/drupal/config/sync/field.field.node.article.field_content.yml b/drupal/config/sync/field.field.node.article.field_content.yml index c01f16f5..45f8818c 100644 --- a/drupal/config/sync/field.field.node.article.field_content.yml +++ b/drupal/config/sync/field.field.node.article.field_content.yml @@ -21,7 +21,7 @@ bundle: article label: Content description: 'Items added will display in the primary content region of the page.' required: false -translatable: false +translatable: true default_value: { } default_value_callback: '' settings: @@ -52,9 +52,6 @@ settings: jumbotron: weight: -17 enabled: true - layout: - weight: 17 - enabled: false link: weight: -16 enabled: true diff --git a/drupal/config/sync/field.field.node.event.field_content.yml b/drupal/config/sync/field.field.node.event.field_content.yml index fb8aae99..826f36ac 100644 --- a/drupal/config/sync/field.field.node.event.field_content.yml +++ b/drupal/config/sync/field.field.node.event.field_content.yml @@ -52,9 +52,6 @@ settings: jumbotron: weight: -18 enabled: true - layout: - weight: 17 - enabled: false link: weight: -17 enabled: true diff --git a/drupal/config/sync/field.field.node.page.field_content.yml b/drupal/config/sync/field.field.node.page.field_content.yml index 206a2471..da07c3e6 100644 --- a/drupal/config/sync/field.field.node.page.field_content.yml +++ b/drupal/config/sync/field.field.node.page.field_content.yml @@ -22,7 +22,7 @@ bundle: page label: Content description: 'Items added will display in the primary content region of the page.' required: false -translatable: false +translatable: true default_value: { } default_value_callback: '' settings: @@ -54,9 +54,6 @@ settings: jumbotron: weight: -18 enabled: true - layout: - weight: 17 - enabled: false link: weight: -17 enabled: true diff --git a/drupal/config/sync/field.field.paragraph.card.field_link.yml b/drupal/config/sync/field.field.paragraph.card.field_link.yml index abb342fc..bab67bcb 100644 --- a/drupal/config/sync/field.field.paragraph.card.field_link.yml +++ b/drupal/config/sync/field.field.paragraph.card.field_link.yml @@ -212,4 +212,7 @@ settings: oauth2_scope: handler: 'default:oauth2_scope' handler_settings: { } + linkit_profile: + handler: 'default:linkit_profile' + handler_settings: { } field_type: dynamic_entity_reference diff --git a/drupal/config/sync/field.field.paragraph.card.field_text_formatted.yml b/drupal/config/sync/field.field.paragraph.card.field_text_formatted.yml index d10dc736..e606f818 100644 --- a/drupal/config/sync/field.field.paragraph.card.field_text_formatted.yml +++ b/drupal/config/sync/field.field.paragraph.card.field_text_formatted.yml @@ -14,7 +14,7 @@ bundle: card label: Description description: "" required: true -translatable: true +translatable: false default_value: { } default_value_callback: '' settings: { } diff --git a/drupal/config/sync/field.field.paragraph.card.field_title.yml b/drupal/config/sync/field.field.paragraph.card.field_title.yml index 5bc9b2da..4dda4ca4 100644 --- a/drupal/config/sync/field.field.paragraph.card.field_title.yml +++ b/drupal/config/sync/field.field.paragraph.card.field_title.yml @@ -12,7 +12,7 @@ bundle: card label: 'Card title' description: '' required: false -translatable: true +translatable: false default_value: { } default_value_callback: '' settings: { } diff --git a/drupal/config/sync/field.field.paragraph.entity_reference.field_title.yml b/drupal/config/sync/field.field.paragraph.entity_reference.field_title.yml index 1057e553..b4479532 100644 --- a/drupal/config/sync/field.field.paragraph.entity_reference.field_title.yml +++ b/drupal/config/sync/field.field.paragraph.entity_reference.field_title.yml @@ -12,7 +12,7 @@ bundle: entity_reference label: 'Title override' description: 'Override the title used for the link.' required: false -translatable: true +translatable: false default_value: { } default_value_callback: '' settings: { } diff --git a/drupal/config/sync/field.field.paragraph.jumbotron.field_content.yml b/drupal/config/sync/field.field.paragraph.jumbotron.field_content.yml index aa4b054e..bca3db6a 100644 --- a/drupal/config/sync/field.field.paragraph.jumbotron.field_content.yml +++ b/drupal/config/sync/field.field.paragraph.jumbotron.field_content.yml @@ -16,7 +16,7 @@ bundle: jumbotron label: Content description: '' required: false -translatable: true +translatable: false default_value: { } default_value_callback: '' settings: diff --git a/drupal/config/sync/field.field.paragraph.link.field_link.yml b/drupal/config/sync/field.field.paragraph.link.field_link.yml index 5b6856db..85040130 100644 --- a/drupal/config/sync/field.field.paragraph.link.field_link.yml +++ b/drupal/config/sync/field.field.paragraph.link.field_link.yml @@ -212,4 +212,7 @@ settings: oauth2_scope: handler: 'default:oauth2_scope' handler_settings: { } + linkit_profile: + handler: 'default:linkit_profile' + handler_settings: { } field_type: dynamic_entity_reference diff --git a/drupal/config/sync/field.field.paragraph.media.field_media.yml b/drupal/config/sync/field.field.paragraph.media.field_media.yml index 4551b96f..2117bd8d 100644 --- a/drupal/config/sync/field.field.paragraph.media.field_media.yml +++ b/drupal/config/sync/field.field.paragraph.media.field_media.yml @@ -15,7 +15,7 @@ bundle: media label: Media description: '' required: true -translatable: true +translatable: false default_value: { } default_value_callback: '' settings: diff --git a/drupal/config/sync/field.field.paragraph.section.field_title.yml b/drupal/config/sync/field.field.paragraph.section.field_title.yml index d64ed651..2d2c87df 100644 --- a/drupal/config/sync/field.field.paragraph.section.field_title.yml +++ b/drupal/config/sync/field.field.paragraph.section.field_title.yml @@ -12,7 +12,7 @@ bundle: section label: 'Section title' description: '

If populated this will be displayed as a H2 above the section.
It will also be used to generate in page contents listing.

' required: false -translatable: true +translatable: false default_value: { } default_value_callback: '' settings: { } diff --git a/drupal/config/sync/language.content_settings.media.document.yml b/drupal/config/sync/language.content_settings.media.document.yml index 5f5b9360..a0c26c70 100644 --- a/drupal/config/sync/language.content_settings.media.document.yml +++ b/drupal/config/sync/language.content_settings.media.document.yml @@ -4,8 +4,15 @@ status: true dependencies: config: - media.type.document + module: + - content_translation +third_party_settings: + content_translation: + enabled: true + bundle_settings: + untranslatable_fields_hide: '0' id: media.document target_entity_type_id: media target_bundle: document default_langcode: site_default -language_alterable: false +language_alterable: true diff --git a/drupal/config/sync/language.content_settings.media.image.yml b/drupal/config/sync/language.content_settings.media.image.yml index 0805d2b1..ff1b344a 100644 --- a/drupal/config/sync/language.content_settings.media.image.yml +++ b/drupal/config/sync/language.content_settings.media.image.yml @@ -4,8 +4,15 @@ status: true dependencies: config: - media.type.image + module: + - content_translation +third_party_settings: + content_translation: + enabled: true + bundle_settings: + untranslatable_fields_hide: '0' id: media.image target_entity_type_id: media target_bundle: image default_langcode: site_default -language_alterable: false +language_alterable: true diff --git a/drupal/config/sync/language.content_settings.media.video.yml b/drupal/config/sync/language.content_settings.media.video.yml index 6e1c2db8..166f6cd2 100644 --- a/drupal/config/sync/language.content_settings.media.video.yml +++ b/drupal/config/sync/language.content_settings.media.video.yml @@ -4,6 +4,13 @@ status: true dependencies: config: - media.type.video + module: + - content_translation +third_party_settings: + content_translation: + enabled: false + bundle_settings: + untranslatable_fields_hide: '0' id: media.video target_entity_type_id: media target_bundle: video diff --git a/drupal/config/sync/linkit.linkit_profile.default.yml b/drupal/config/sync/linkit.linkit_profile.default.yml index a96c2dda..d9a6f4ca 100644 --- a/drupal/config/sync/linkit.linkit_profile.default.yml +++ b/drupal/config/sync/linkit.linkit_profile.default.yml @@ -6,18 +6,18 @@ dependencies: - node _core: default_config_hash: Tt8DtxZ3Nooo0PoWPpJvszA3R_5d8MmpUW7LM_R-BzY -id: default label: Default +id: default description: 'A default Linkit profile' matchers: 556010a3-e317-48b3-b4ed-854c10f4b950: - uuid: 556010a3-e317-48b3-b4ed-854c10f4b950 id: 'entity:node' - weight: 0 + uuid: 556010a3-e317-48b3-b4ed-854c10f4b950 settings: metadata: 'by [node:author] | [node:created:medium]' bundles: { } group_by_bundle: false - include_unpublished: false substitution_type: canonical limit: 100 + include_unpublished: false + weight: 0 diff --git a/drupal/config/sync/linkychecker.settings.yml b/drupal/config/sync/linkychecker.settings.yml index 539b22ec..dfe3bfbb 100644 --- a/drupal/config/sync/linkychecker.settings.yml +++ b/drupal/config/sync/linkychecker.settings.yml @@ -1,6 +1,6 @@ _core: default_config_hash: T4Uf6khas7E18kR1ayjXxHEteU-QjAHGlTjgK28WqoQ -user_agent: 'Drupal 8 Linkychecker' +user_agent: 'Drupal Linkychecker' crawl_interval: 604800 crawl_per_job: 5 enable_cron: true diff --git a/drupal/config/sync/views.view.content.yml b/drupal/config/sync/views.view.content.yml index 2a3afe8b..59619e6e 100644 --- a/drupal/config/sync/views.view.content.yml +++ b/drupal/config/sync/views.view.content.yml @@ -124,6 +124,72 @@ display: multi_type: separator separator: ', ' field_api_classes: false + langcode: + id: langcode + table: node_field_revision + field: langcode + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: langcode + plugin_id: field + label: Language + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: language + settings: + link_to_entity: false + native_language: false + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false name: id: name table: users_field_data diff --git a/drupal/config/sync/views.view.media.yml b/drupal/config/sync/views.view.media.yml index 735050f0..1d86c784 100644 --- a/drupal/config/sync/views.view.media.yml +++ b/drupal/config/sync/views.view.media.yml @@ -259,6 +259,72 @@ display: multi_type: separator separator: ', ' field_api_classes: false + langcode: + id: langcode + table: media_field_revision + field: langcode + relationship: none + group_type: group + admin_label: '' + entity_type: media + entity_field: langcode + plugin_id: field + label: Language + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: language + settings: + link_to_entity: false + native_language: false + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false uid: id: uid table: media_field_data diff --git a/drupal/config/sync/views.view.media_library.yml b/drupal/config/sync/views.view.media_library.yml index ca64cd14..94228b31 100644 --- a/drupal/config/sync/views.view.media_library.yml +++ b/drupal/config/sync/views.view.media_library.yml @@ -478,13 +478,21 @@ display: cache_metadata: max-age: 0 contexts: + - 'languages:language_content' - 'languages:language_interface' - url - url.query_args - 'url.query_args:sort_by' - user - user.permissions - tags: { } + tags: + - 'config:core.entity_view_display.media.document.default' + - 'config:core.entity_view_display.media.document.media_library' + - 'config:core.entity_view_display.media.image.card' + - 'config:core.entity_view_display.media.image.default' + - 'config:core.entity_view_display.media.image.media_library' + - 'config:core.entity_view_display.media.video.default' + - 'config:core.entity_view_display.media.video.media_library' page: id: page display_title: Page @@ -781,7 +789,14 @@ display: - 'url.query_args:sort_by' - user - user.permissions - tags: { } + tags: + - 'config:core.entity_view_display.media.document.default' + - 'config:core.entity_view_display.media.document.media_library' + - 'config:core.entity_view_display.media.image.card' + - 'config:core.entity_view_display.media.image.default' + - 'config:core.entity_view_display.media.image.media_library' + - 'config:core.entity_view_display.media.video.default' + - 'config:core.entity_view_display.media.video.media_library' widget: id: widget display_title: Widget @@ -1101,7 +1116,14 @@ display: - url.query_args - 'url.query_args:sort_by' - user.permissions - tags: { } + tags: + - 'config:core.entity_view_display.media.document.default' + - 'config:core.entity_view_display.media.document.media_library' + - 'config:core.entity_view_display.media.image.card' + - 'config:core.entity_view_display.media.image.default' + - 'config:core.entity_view_display.media.image.media_library' + - 'config:core.entity_view_display.media.video.default' + - 'config:core.entity_view_display.media.video.media_library' widget_table: id: widget_table display_title: 'Widget (table)' @@ -1146,6 +1168,72 @@ display: type: string settings: link_to_entity: false + langcode: + id: langcode + table: media_field_revision + field: langcode + relationship: none + group_type: group + admin_label: '' + entity_type: media + entity_field: langcode + plugin_id: field + label: Language + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: language + settings: + link_to_entity: false + native_language: false + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false uid: id: uid table: media_field_revision