diff --git a/composer.json b/composer.json index 134c45e7e..890944777 100644 --- a/composer.json +++ b/composer.json @@ -148,17 +148,31 @@ } }, "installer-paths": { - "web/core": ["type:drupal-core"], - "web/modules/contrib/{$name}": ["type:drupal-module"], - "web/profiles/contrib/{$name}": ["type:drupal-profile"], - "web/themes/contrib/{$name}": ["type:drupal-theme"], - "drush/Commands/contrib/{$name}": ["type:drupal-drush"], - "web/modules/custom/{$name}": ["type:drupal-custom-module"], - "web/themes/custom/{$name}": ["type:drupal-custom-theme"], + "web/core": [ + "type:drupal-core" + ], + "web/modules/contrib/{$name}": [ + "type:drupal-module" + ], + "web/profiles/contrib/{$name}": [ + "type:drupal-profile" + ], + "web/themes/contrib/{$name}": [ + "type:drupal-theme" + ], + "drush/Commands/contrib/{$name}": [ + "type:drupal-drush" + ], + "web/modules/custom/{$name}": [ + "type:drupal-custom-module" + ], + "web/themes/custom/{$name}": [ + "type:drupal-custom-theme" + ], "web/libraries/{$name}": [ - "type:drupal-library", - "type:bower-asset", - "type:npm-asset" + "type:drupal-library", + "type:bower-asset", + "type:npm-asset" ] }, "installer-types": [ @@ -166,7 +180,10 @@ "npm-asset" ], "drupal-core-project-message": { - "include-keys": ["homepage", "support"], + "include-keys": [ + "homepage", + "support" + ], "post-create-project-cmd-message": [ " ", " Congratulations, you’ve installed the Drupal codebase ", @@ -174,7 +191,6 @@ " ", "", "Next steps:", - " * Install the site: https://www.drupal.org/docs/8/install", " * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html", " * Get support: https://www.drupal.org/support", diff --git a/composer.lock b/composer.lock index e9b543f1b..143a8d454 100644 --- a/composer.lock +++ b/composer.lock @@ -13930,16 +13930,16 @@ }, { "name": "phpstan/phpdoc-parser", - "version": "1.32.0", + "version": "1.33.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "6ca22b154efdd9e3c68c56f5d94670920a1c19a4" + "reference": "82a311fd3690fb2bf7b64d5c98f912b3dd746140" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/6ca22b154efdd9e3c68c56f5d94670920a1c19a4", - "reference": "6ca22b154efdd9e3c68c56f5d94670920a1c19a4", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/82a311fd3690fb2bf7b64d5c98f912b3dd746140", + "reference": "82a311fd3690fb2bf7b64d5c98f912b3dd746140", "shasum": "" }, "require": { @@ -13971,9 +13971,9 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.32.0" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.33.0" }, - "time": "2024-09-26T07:23:32+00:00" + "time": "2024-10-13T11:25:22+00:00" }, { "name": "phpunit/php-code-coverage", diff --git a/config/sync/core.base_field_override.block_content.basic.metatag.yml b/config/sync/core.base_field_override.block_content.basic.metatag.yml new file mode 100644 index 000000000..b55887dc1 --- /dev/null +++ b/config/sync/core.base_field_override.block_content.basic.metatag.yml @@ -0,0 +1,20 @@ +uuid: 131c0f4e-8172-4dc4-818c-90ad34b5bc83 +langcode: en +status: true +dependencies: + config: + - block_content.type.basic + module: + - metatag +id: block_content.basic.metatag +field_name: metatag +entity_type: block_content +bundle: basic +label: 'Metatags (Hidden field for JSON support)' +description: 'The computed meta tags for the entity.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: metatag_computed diff --git a/config/sync/core.base_field_override.media.document.changed.yml b/config/sync/core.base_field_override.media.document.changed.yml new file mode 100644 index 000000000..c4d6829bc --- /dev/null +++ b/config/sync/core.base_field_override.media.document.changed.yml @@ -0,0 +1,18 @@ +uuid: 88bd9bbe-5e6b-4356-af15-0ca8627cde1d +langcode: en +status: true +dependencies: + config: + - media.type.document +id: media.document.changed +field_name: changed +entity_type: media +bundle: document +label: Changed +description: 'The time the media item was last edited.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: changed diff --git a/config/sync/core.base_field_override.media.document.created.yml b/config/sync/core.base_field_override.media.document.created.yml new file mode 100644 index 000000000..c43d48841 --- /dev/null +++ b/config/sync/core.base_field_override.media.document.created.yml @@ -0,0 +1,18 @@ +uuid: 4dd9cdd7-ecec-42fa-bab8-c467bd0fd712 +langcode: en +status: true +dependencies: + config: + - media.type.document +id: media.document.created +field_name: created +entity_type: media +bundle: document +label: 'Authored on' +description: 'The time the media item was created.' +required: false +translatable: false +default_value: { } +default_value_callback: 'Drupal\media\Entity\Media::getRequestTime' +settings: { } +field_type: created diff --git a/config/sync/core.base_field_override.media.document.metatag.yml b/config/sync/core.base_field_override.media.document.metatag.yml new file mode 100644 index 000000000..0d1a9754f --- /dev/null +++ b/config/sync/core.base_field_override.media.document.metatag.yml @@ -0,0 +1,20 @@ +uuid: d54aa1fb-a261-4a9e-ace9-23cf84fddc76 +langcode: en +status: true +dependencies: + config: + - media.type.document + module: + - metatag +id: media.document.metatag +field_name: metatag +entity_type: media +bundle: document +label: 'Metatags (Hidden field for JSON support)' +description: 'The computed meta tags for the entity.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: metatag_computed diff --git a/config/sync/core.base_field_override.media.document.name.yml b/config/sync/core.base_field_override.media.document.name.yml new file mode 100644 index 000000000..21679add8 --- /dev/null +++ b/config/sync/core.base_field_override.media.document.name.yml @@ -0,0 +1,20 @@ +uuid: 216428aa-28b8-4773-8ca1-3f5d8997b676 +langcode: en +status: true +dependencies: + config: + - media.type.document +id: media.document.name +field_name: name +entity_type: media +bundle: document +label: Name +description: '' +required: true +translatable: true +default_value: + - + value: '' +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/core.base_field_override.media.document.path.yml b/config/sync/core.base_field_override.media.document.path.yml new file mode 100644 index 000000000..07592cc6f --- /dev/null +++ b/config/sync/core.base_field_override.media.document.path.yml @@ -0,0 +1,20 @@ +uuid: c56dfd1c-1217-4919-93f8-63c39b5f1047 +langcode: en +status: true +dependencies: + config: + - media.type.document + module: + - path +id: media.document.path +field_name: path +entity_type: media +bundle: document +label: 'URL alias' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: path diff --git a/config/sync/core.base_field_override.media.document.status.yml b/config/sync/core.base_field_override.media.document.status.yml new file mode 100644 index 000000000..59c9991f8 --- /dev/null +++ b/config/sync/core.base_field_override.media.document.status.yml @@ -0,0 +1,22 @@ +uuid: e1dda4fc-272c-4533-8efe-e308226c93d4 +langcode: en +status: true +dependencies: + config: + - media.type.document +id: media.document.status +field_name: status +entity_type: media +bundle: document +label: Published +description: '' +required: false +translatable: false +default_value: + - + value: 1 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/config/sync/core.base_field_override.media.document.thumbnail.yml b/config/sync/core.base_field_override.media.document.thumbnail.yml new file mode 100644 index 000000000..3a976f8fd --- /dev/null +++ b/config/sync/core.base_field_override.media.document.thumbnail.yml @@ -0,0 +1,44 @@ +uuid: fcc3f509-d154-4fb2-b0e5-c22c74178068 +langcode: en +status: true +dependencies: + config: + - media.type.document + module: + - content_translation + - image +third_party_settings: + content_translation: + translation_sync: + alt: alt + title: title + file: 0 +id: media.document.thumbnail +field_name: thumbnail +entity_type: media +bundle: document +label: Thumbnail +description: 'The thumbnail of the media item.' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + handler: default + handler_settings: { } + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: 'png gif jpg jpeg webp' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: true + title_field: false + title_field_required: false + default_image: + uuid: null + alt: '' + title: '' + width: null + height: null +field_type: image diff --git a/config/sync/core.base_field_override.media.document.uid.yml b/config/sync/core.base_field_override.media.document.uid.yml new file mode 100644 index 000000000..9d64199d2 --- /dev/null +++ b/config/sync/core.base_field_override.media.document.uid.yml @@ -0,0 +1,20 @@ +uuid: b7cac625-7784-4165-8f80-a1582f0059b5 +langcode: en +status: true +dependencies: + config: + - media.type.document +id: media.document.uid +field_name: uid +entity_type: media +bundle: document +label: 'Authored by' +description: 'The user ID of the author.' +required: false +translatable: false +default_value: { } +default_value_callback: 'Drupal\media\Entity\Media::getDefaultEntityOwner' +settings: + handler: default + handler_settings: { } +field_type: entity_reference diff --git a/config/sync/core.base_field_override.media.image.metatag.yml b/config/sync/core.base_field_override.media.image.metatag.yml new file mode 100644 index 000000000..4d97dc70c --- /dev/null +++ b/config/sync/core.base_field_override.media.image.metatag.yml @@ -0,0 +1,20 @@ +uuid: f2c5cdc8-817a-4577-81a4-5f0bc413889d +langcode: en +status: true +dependencies: + config: + - media.type.image + module: + - metatag +id: media.image.metatag +field_name: metatag +entity_type: media +bundle: image +label: 'Metatags (Hidden field for JSON support)' +description: 'The computed meta tags for the entity.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: metatag_computed diff --git a/config/sync/core.base_field_override.media.image.name.yml b/config/sync/core.base_field_override.media.image.name.yml index 113c58df6..a08345160 100644 --- a/config/sync/core.base_field_override.media.image.name.yml +++ b/config/sync/core.base_field_override.media.image.name.yml @@ -11,7 +11,7 @@ bundle: image label: Name description: '' required: true -translatable: false +translatable: true default_value: - value: '' diff --git a/config/sync/core.base_field_override.media.image.thumbnail.yml b/config/sync/core.base_field_override.media.image.thumbnail.yml index 2b5db24db..b513ff2d5 100644 --- a/config/sync/core.base_field_override.media.image.thumbnail.yml +++ b/config/sync/core.base_field_override.media.image.thumbnail.yml @@ -5,7 +5,14 @@ dependencies: config: - media.type.image module: + - content_translation - image +third_party_settings: + content_translation: + translation_sync: + alt: alt + title: title + file: 0 id: media.image.thumbnail field_name: thumbnail entity_type: media @@ -13,7 +20,7 @@ bundle: image label: Thumbnail description: 'The thumbnail of the media item.' required: false -translatable: false +translatable: true default_value: { } default_value_callback: '' settings: diff --git a/config/sync/core.base_field_override.media.video.changed.yml b/config/sync/core.base_field_override.media.video.changed.yml new file mode 100644 index 000000000..7bec5a6d3 --- /dev/null +++ b/config/sync/core.base_field_override.media.video.changed.yml @@ -0,0 +1,18 @@ +uuid: 407da045-3262-4305-a2ea-bd38db46fe20 +langcode: en +status: true +dependencies: + config: + - media.type.video +id: media.video.changed +field_name: changed +entity_type: media +bundle: video +label: Changed +description: 'The time the media item was last edited.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: changed diff --git a/config/sync/core.base_field_override.media.video.created.yml b/config/sync/core.base_field_override.media.video.created.yml new file mode 100644 index 000000000..99f3afbb9 --- /dev/null +++ b/config/sync/core.base_field_override.media.video.created.yml @@ -0,0 +1,18 @@ +uuid: 9cf13802-a1fd-4d48-903a-1e6f26330927 +langcode: en +status: true +dependencies: + config: + - media.type.video +id: media.video.created +field_name: created +entity_type: media +bundle: video +label: 'Authored on' +description: 'The time the media item was created.' +required: false +translatable: false +default_value: { } +default_value_callback: 'Drupal\media\Entity\Media::getRequestTime' +settings: { } +field_type: created diff --git a/config/sync/core.base_field_override.media.video.metatag.yml b/config/sync/core.base_field_override.media.video.metatag.yml new file mode 100644 index 000000000..378d04943 --- /dev/null +++ b/config/sync/core.base_field_override.media.video.metatag.yml @@ -0,0 +1,20 @@ +uuid: 77720278-ced7-4929-8ff5-6c9a21933b14 +langcode: en +status: true +dependencies: + config: + - media.type.video + module: + - metatag +id: media.video.metatag +field_name: metatag +entity_type: media +bundle: video +label: 'Metatags (Hidden field for JSON support)' +description: 'The computed meta tags for the entity.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: metatag_computed diff --git a/config/sync/core.base_field_override.media.video.name.yml b/config/sync/core.base_field_override.media.video.name.yml new file mode 100644 index 000000000..e620327aa --- /dev/null +++ b/config/sync/core.base_field_override.media.video.name.yml @@ -0,0 +1,20 @@ +uuid: 2600d270-7e25-4f63-b752-c7899c601b34 +langcode: en +status: true +dependencies: + config: + - media.type.video +id: media.video.name +field_name: name +entity_type: media +bundle: video +label: Name +description: '' +required: true +translatable: true +default_value: + - + value: '' +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/core.base_field_override.media.video.path.yml b/config/sync/core.base_field_override.media.video.path.yml new file mode 100644 index 000000000..e1cf3c9d7 --- /dev/null +++ b/config/sync/core.base_field_override.media.video.path.yml @@ -0,0 +1,20 @@ +uuid: 64a671b2-ac71-4a00-a52a-2306ec9754d6 +langcode: en +status: true +dependencies: + config: + - media.type.video + module: + - path +id: media.video.path +field_name: path +entity_type: media +bundle: video +label: 'URL alias' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: path diff --git a/config/sync/core.base_field_override.media.video.status.yml b/config/sync/core.base_field_override.media.video.status.yml new file mode 100644 index 000000000..1fe16167f --- /dev/null +++ b/config/sync/core.base_field_override.media.video.status.yml @@ -0,0 +1,22 @@ +uuid: 715d6f99-d0db-424f-95e5-bbeceed958d3 +langcode: en +status: true +dependencies: + config: + - media.type.video +id: media.video.status +field_name: status +entity_type: media +bundle: video +label: Published +description: '' +required: false +translatable: false +default_value: + - + value: 1 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/config/sync/core.base_field_override.media.video.thumbnail.yml b/config/sync/core.base_field_override.media.video.thumbnail.yml new file mode 100644 index 000000000..4faa79604 --- /dev/null +++ b/config/sync/core.base_field_override.media.video.thumbnail.yml @@ -0,0 +1,44 @@ +uuid: 0c48af0c-7730-4f99-a919-7bd2bfd2ec29 +langcode: en +status: true +dependencies: + config: + - media.type.video + module: + - content_translation + - image +third_party_settings: + content_translation: + translation_sync: + alt: alt + title: title + file: 0 +id: media.video.thumbnail +field_name: thumbnail +entity_type: media +bundle: video +label: Thumbnail +description: 'The thumbnail of the media item.' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + handler: default + handler_settings: { } + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: 'png gif jpg jpeg webp' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: true + title_field: false + title_field_required: false + default_image: + uuid: null + alt: '' + title: '' + width: null + height: null +field_type: image diff --git a/config/sync/core.base_field_override.media.video.uid.yml b/config/sync/core.base_field_override.media.video.uid.yml new file mode 100644 index 000000000..23b3807f1 --- /dev/null +++ b/config/sync/core.base_field_override.media.video.uid.yml @@ -0,0 +1,20 @@ +uuid: d60c0d61-6a1f-445d-b973-2a4395b0d337 +langcode: en +status: true +dependencies: + config: + - media.type.video +id: media.video.uid +field_name: uid +entity_type: media +bundle: video +label: 'Authored by' +description: 'The user ID of the author.' +required: false +translatable: false +default_value: { } +default_value_callback: 'Drupal\media\Entity\Media::getDefaultEntityOwner' +settings: + handler: default + handler_settings: { } +field_type: entity_reference diff --git a/config/sync/core.base_field_override.menu_link_content.menu_link_content.metatag.yml b/config/sync/core.base_field_override.menu_link_content.menu_link_content.metatag.yml new file mode 100644 index 000000000..3ee7ba370 --- /dev/null +++ b/config/sync/core.base_field_override.menu_link_content.menu_link_content.metatag.yml @@ -0,0 +1,19 @@ +uuid: ddb62e0d-b0fc-45ce-890e-49e6c3b397f8 +langcode: en +status: true +dependencies: + module: + - menu_link_content + - metatag +id: menu_link_content.menu_link_content.metatag +field_name: metatag +entity_type: menu_link_content +bundle: menu_link_content +label: 'Metatags (Hidden field for JSON support)' +description: 'The computed meta tags for the entity.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: metatag_computed diff --git a/config/sync/core.base_field_override.paragraph.accordion.created.yml b/config/sync/core.base_field_override.paragraph.accordion.created.yml new file mode 100644 index 000000000..259917d74 --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.accordion.created.yml @@ -0,0 +1,18 @@ +uuid: 235761b8-1982-468f-b110-ecd68e439d13 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.accordion +id: paragraph.accordion.created +field_name: created +entity_type: paragraph +bundle: accordion +label: 'Authored on' +description: 'The time that the Paragraph was created.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: created diff --git a/config/sync/core.base_field_override.paragraph.accordion.status.yml b/config/sync/core.base_field_override.paragraph.accordion.status.yml new file mode 100644 index 000000000..e6eb4b247 --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.accordion.status.yml @@ -0,0 +1,22 @@ +uuid: 3eaf1424-c998-45a7-bb2c-a784cc31b8be +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.accordion +id: paragraph.accordion.status +field_name: status +entity_type: paragraph +bundle: accordion +label: Published +description: '' +required: false +translatable: false +default_value: + - + value: 1 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/config/sync/core.base_field_override.paragraph.accordion_item.created.yml b/config/sync/core.base_field_override.paragraph.accordion_item.created.yml new file mode 100644 index 000000000..67c65b92a --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.accordion_item.created.yml @@ -0,0 +1,18 @@ +uuid: cde0f6c7-208f-46fa-83d5-ce6792ebea38 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.accordion_item +id: paragraph.accordion_item.created +field_name: created +entity_type: paragraph +bundle: accordion_item +label: 'Authored on' +description: 'The time that the Paragraph was created.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: created diff --git a/config/sync/core.base_field_override.paragraph.accordion_item.status.yml b/config/sync/core.base_field_override.paragraph.accordion_item.status.yml new file mode 100644 index 000000000..d97f6bffd --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.accordion_item.status.yml @@ -0,0 +1,22 @@ +uuid: e188294b-def3-443e-b202-07285b06fca8 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.accordion_item +id: paragraph.accordion_item.status +field_name: status +entity_type: paragraph +bundle: accordion_item +label: Published +description: '' +required: false +translatable: false +default_value: + - + value: 1 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/config/sync/core.base_field_override.paragraph.documents.created.yml b/config/sync/core.base_field_override.paragraph.documents.created.yml new file mode 100644 index 000000000..bdc7e3bf7 --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.documents.created.yml @@ -0,0 +1,18 @@ +uuid: b9f54e0b-5478-427b-b2c2-7a941309f1ac +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.documents +id: paragraph.documents.created +field_name: created +entity_type: paragraph +bundle: documents +label: 'Authored on' +description: 'The time that the Paragraph was created.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: created diff --git a/config/sync/core.base_field_override.paragraph.documents.status.yml b/config/sync/core.base_field_override.paragraph.documents.status.yml new file mode 100644 index 000000000..2d75fcd3d --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.documents.status.yml @@ -0,0 +1,22 @@ +uuid: e31346c8-f7ab-429a-a256-b0c085aea94b +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.documents +id: paragraph.documents.status +field_name: status +entity_type: paragraph +bundle: documents +label: Published +description: '' +required: false +translatable: false +default_value: + - + value: 1 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/config/sync/core.base_field_override.paragraph.info_card.created.yml b/config/sync/core.base_field_override.paragraph.info_card.created.yml new file mode 100644 index 000000000..ebcfb5238 --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.info_card.created.yml @@ -0,0 +1,18 @@ +uuid: c5c04669-74a5-4d52-a8d8-947188e785f6 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.info_card +id: paragraph.info_card.created +field_name: created +entity_type: paragraph +bundle: info_card +label: 'Authored on' +description: 'The time that the Paragraph was created.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: created diff --git a/config/sync/core.base_field_override.paragraph.info_card.status.yml b/config/sync/core.base_field_override.paragraph.info_card.status.yml new file mode 100644 index 000000000..84a44b4e2 --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.info_card.status.yml @@ -0,0 +1,22 @@ +uuid: 0307a71d-102e-46d7-a62c-0fdff9edbae5 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.info_card +id: paragraph.info_card.status +field_name: status +entity_type: paragraph +bundle: info_card +label: Published +description: '' +required: false +translatable: false +default_value: + - + value: 1 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/config/sync/core.base_field_override.paragraph.info_cards.created.yml b/config/sync/core.base_field_override.paragraph.info_cards.created.yml new file mode 100644 index 000000000..d0d671f62 --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.info_cards.created.yml @@ -0,0 +1,18 @@ +uuid: 1736a592-6526-4385-8a1a-34fa1225e450 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.info_cards +id: paragraph.info_cards.created +field_name: created +entity_type: paragraph +bundle: info_cards +label: 'Authored on' +description: 'The time that the Paragraph was created.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: created diff --git a/config/sync/core.base_field_override.paragraph.info_cards.status.yml b/config/sync/core.base_field_override.paragraph.info_cards.status.yml new file mode 100644 index 000000000..5ff7b8ad2 --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.info_cards.status.yml @@ -0,0 +1,22 @@ +uuid: 59050852-f42a-4b0b-815e-0897a6df4fa7 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.info_cards +id: paragraph.info_cards.status +field_name: status +entity_type: paragraph +bundle: info_cards +label: Published +description: '' +required: false +translatable: false +default_value: + - + value: 1 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/config/sync/core.base_field_override.paragraph.news_teasers.created.yml b/config/sync/core.base_field_override.paragraph.news_teasers.created.yml new file mode 100644 index 000000000..b73cc68f5 --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.news_teasers.created.yml @@ -0,0 +1,18 @@ +uuid: eb882cee-066e-451a-8074-9cb46f984608 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.news_teasers +id: paragraph.news_teasers.created +field_name: created +entity_type: paragraph +bundle: news_teasers +label: 'Authored on' +description: 'The time that the Paragraph was created.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: created diff --git a/config/sync/core.base_field_override.paragraph.news_teasers.status.yml b/config/sync/core.base_field_override.paragraph.news_teasers.status.yml new file mode 100644 index 000000000..366327aca --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.news_teasers.status.yml @@ -0,0 +1,22 @@ +uuid: 78386aee-3545-4ad1-aab4-a84b9735d72b +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.news_teasers +id: paragraph.news_teasers.status +field_name: status +entity_type: paragraph +bundle: news_teasers +label: Published +description: '' +required: false +translatable: false +default_value: + - + value: 1 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/config/sync/core.base_field_override.paragraph.people_teasers.created.yml b/config/sync/core.base_field_override.paragraph.people_teasers.created.yml new file mode 100644 index 000000000..eb6f5fd72 --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.people_teasers.created.yml @@ -0,0 +1,18 @@ +uuid: 5f76c585-2fc5-4ef5-a63e-55a8d316a6a3 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.people_teasers +id: paragraph.people_teasers.created +field_name: created +entity_type: paragraph +bundle: people_teasers +label: 'Authored on' +description: 'The time that the Paragraph was created.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: created diff --git a/config/sync/core.base_field_override.paragraph.people_teasers.status.yml b/config/sync/core.base_field_override.paragraph.people_teasers.status.yml new file mode 100644 index 000000000..56b82d5fb --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.people_teasers.status.yml @@ -0,0 +1,22 @@ +uuid: 61e9601e-85aa-4244-8228-2bd0591d532f +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.people_teasers +id: paragraph.people_teasers.status +field_name: status +entity_type: paragraph +bundle: people_teasers +label: Published +description: '' +required: false +translatable: false +default_value: + - + value: 1 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/config/sync/core.base_field_override.paragraph.person_teaser.created.yml b/config/sync/core.base_field_override.paragraph.person_teaser.created.yml new file mode 100644 index 000000000..68090ff7c --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.person_teaser.created.yml @@ -0,0 +1,18 @@ +uuid: 87841e0f-36da-40b9-9cbb-478611e52439 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.person_teaser +id: paragraph.person_teaser.created +field_name: created +entity_type: paragraph +bundle: person_teaser +label: 'Authored on' +description: 'The time that the Paragraph was created.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: created diff --git a/config/sync/core.base_field_override.paragraph.person_teaser.status.yml b/config/sync/core.base_field_override.paragraph.person_teaser.status.yml new file mode 100644 index 000000000..f81f7f727 --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.person_teaser.status.yml @@ -0,0 +1,22 @@ +uuid: b62a3403-934a-4199-b1e8-18e9acfbfba0 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.person_teaser +id: paragraph.person_teaser.status +field_name: status +entity_type: paragraph +bundle: person_teaser +label: Published +description: '' +required: false +translatable: false +default_value: + - + value: 1 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/config/sync/core.base_field_override.paragraph.quick_link_item.created.yml b/config/sync/core.base_field_override.paragraph.quick_link_item.created.yml new file mode 100644 index 000000000..0a2803426 --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.quick_link_item.created.yml @@ -0,0 +1,18 @@ +uuid: 796f18c8-c313-4b33-af32-86ec61fb9e58 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.quick_link_item +id: paragraph.quick_link_item.created +field_name: created +entity_type: paragraph +bundle: quick_link_item +label: 'Authored on' +description: 'The time that the Paragraph was created.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: created diff --git a/config/sync/core.base_field_override.paragraph.quick_link_item.status.yml b/config/sync/core.base_field_override.paragraph.quick_link_item.status.yml new file mode 100644 index 000000000..c88477226 --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.quick_link_item.status.yml @@ -0,0 +1,22 @@ +uuid: c2b1a57a-c2c9-4ee3-b9db-974faab45064 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.quick_link_item +id: paragraph.quick_link_item.status +field_name: status +entity_type: paragraph +bundle: quick_link_item +label: Published +description: '' +required: false +translatable: false +default_value: + - + value: 1 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/config/sync/core.base_field_override.paragraph.quick_links.created.yml b/config/sync/core.base_field_override.paragraph.quick_links.created.yml new file mode 100644 index 000000000..4a138ef2f --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.quick_links.created.yml @@ -0,0 +1,18 @@ +uuid: 6492ae36-4df6-4ed7-aabb-119c08c82d27 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.quick_links +id: paragraph.quick_links.created +field_name: created +entity_type: paragraph +bundle: quick_links +label: 'Authored on' +description: 'The time that the Paragraph was created.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: created diff --git a/config/sync/core.base_field_override.paragraph.quick_links.status.yml b/config/sync/core.base_field_override.paragraph.quick_links.status.yml new file mode 100644 index 000000000..653d6c808 --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.quick_links.status.yml @@ -0,0 +1,22 @@ +uuid: 621b7ede-c32f-4060-83ab-cfbaa63c8337 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.quick_links +id: paragraph.quick_links.status +field_name: status +entity_type: paragraph +bundle: quick_links +label: Published +description: '' +required: false +translatable: false +default_value: + - + value: 1 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/config/sync/core.base_field_override.paragraph.quote.created.yml b/config/sync/core.base_field_override.paragraph.quote.created.yml new file mode 100644 index 000000000..2f33a914e --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.quote.created.yml @@ -0,0 +1,18 @@ +uuid: bbbf3d5b-6aef-45f5-a4f9-db2f16b11024 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.quote +id: paragraph.quote.created +field_name: created +entity_type: paragraph +bundle: quote +label: 'Authored on' +description: 'The time that the Paragraph was created.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: created diff --git a/config/sync/core.base_field_override.paragraph.quote.status.yml b/config/sync/core.base_field_override.paragraph.quote.status.yml new file mode 100644 index 000000000..8a9e9f5d5 --- /dev/null +++ b/config/sync/core.base_field_override.paragraph.quote.status.yml @@ -0,0 +1,22 @@ +uuid: 963043c6-89c3-4ef1-864b-deb582d70863 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.quote +id: paragraph.quote.status +field_name: status +entity_type: paragraph +bundle: quote +label: Published +description: '' +required: false +translatable: false +default_value: + - + value: 1 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/config/sync/core.base_field_override.shortcut.default.metatag.yml b/config/sync/core.base_field_override.shortcut.default.metatag.yml new file mode 100644 index 000000000..626b8636a --- /dev/null +++ b/config/sync/core.base_field_override.shortcut.default.metatag.yml @@ -0,0 +1,20 @@ +uuid: f6ece11b-8f90-4b96-b080-ad329f230219 +langcode: en +status: true +dependencies: + config: + - shortcut.set.default + module: + - metatag +id: shortcut.default.metatag +field_name: metatag +entity_type: shortcut +bundle: default +label: 'Metatags (Hidden field for JSON support)' +description: 'The computed meta tags for the entity.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: metatag_computed diff --git a/config/sync/core.base_field_override.user.user.metatag.yml b/config/sync/core.base_field_override.user.user.metatag.yml new file mode 100644 index 000000000..ef6181bfd --- /dev/null +++ b/config/sync/core.base_field_override.user.user.metatag.yml @@ -0,0 +1,19 @@ +uuid: 882dcc50-9061-466e-991f-9f43955cd630 +langcode: en +status: true +dependencies: + module: + - metatag + - user +id: user.user.metatag +field_name: metatag +entity_type: user +bundle: user +label: 'Metatags (Hidden field for JSON support)' +description: 'The computed meta tags for the entity.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: metatag_computed diff --git a/config/sync/core.entity_form_display.media.document.default.yml b/config/sync/core.entity_form_display.media.document.default.yml index 310ba0688..24fb623a1 100644 --- a/config/sync/core.entity_form_display.media.document.default.yml +++ b/config/sync/core.entity_form_display.media.document.default.yml @@ -54,6 +54,11 @@ content: settings: display_label: true third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } uid: type: entity_reference_autocomplete weight: 4 diff --git a/config/sync/core.entity_form_display.media.document.media_library.yml b/config/sync/core.entity_form_display.media.document.media_library.yml index 28090544b..7e7c6f292 100644 --- a/config/sync/core.entity_form_display.media.document.media_library.yml +++ b/config/sync/core.entity_form_display.media.document.media_library.yml @@ -19,6 +19,11 @@ content: size: 60 placeholder: '' third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } hidden: created: true field_media_file: true diff --git a/config/sync/core.entity_form_display.media.video.default.yml b/config/sync/core.entity_form_display.media.video.default.yml index 2cd1164df..8e079fd7b 100644 --- a/config/sync/core.entity_form_display.media.video.default.yml +++ b/config/sync/core.entity_form_display.media.video.default.yml @@ -65,6 +65,11 @@ content: settings: display_label: true third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } uid: type: entity_reference_autocomplete weight: 4 diff --git a/config/sync/core.entity_form_display.media.video.media_library.yml b/config/sync/core.entity_form_display.media.video.media_library.yml index 052c029c3..7853daabe 100644 --- a/config/sync/core.entity_form_display.media.video.media_library.yml +++ b/config/sync/core.entity_form_display.media.video.media_library.yml @@ -29,6 +29,11 @@ content: size: 60 placeholder: '' third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } hidden: created: true field_media_credit: true diff --git a/config/sync/core.entity_form_display.paragraph.accordion.default.yml b/config/sync/core.entity_form_display.paragraph.accordion.default.yml index 2c72711ee..8c7ec2dd3 100644 --- a/config/sync/core.entity_form_display.paragraph.accordion.default.yml +++ b/config/sync/core.entity_form_display.paragraph.accordion.default.yml @@ -49,6 +49,11 @@ content: size: 60 placeholder: '' third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } hidden: created: true status: true diff --git a/config/sync/core.entity_form_display.paragraph.accordion_item.default.yml b/config/sync/core.entity_form_display.paragraph.accordion_item.default.yml index 7a03b5053..4cb3f0aa4 100644 --- a/config/sync/core.entity_form_display.paragraph.accordion_item.default.yml +++ b/config/sync/core.entity_form_display.paragraph.accordion_item.default.yml @@ -29,6 +29,11 @@ content: size: 60 placeholder: '' third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } hidden: created: true status: true diff --git a/config/sync/core.entity_form_display.paragraph.documents.default.yml b/config/sync/core.entity_form_display.paragraph.documents.default.yml index 2f95db16d..59c39c4fb 100644 --- a/config/sync/core.entity_form_display.paragraph.documents.default.yml +++ b/config/sync/core.entity_form_display.paragraph.documents.default.yml @@ -38,6 +38,11 @@ content: size: 60 placeholder: '' third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } hidden: created: true status: true diff --git a/config/sync/core.entity_form_display.paragraph.hero_image.default.yml b/config/sync/core.entity_form_display.paragraph.hero_image.default.yml index 3b499aa0f..3c7cadcc3 100644 --- a/config/sync/core.entity_form_display.paragraph.hero_image.default.yml +++ b/config/sync/core.entity_form_display.paragraph.hero_image.default.yml @@ -47,6 +47,11 @@ content: size: 60 placeholder: '' third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } hidden: created: true status: true diff --git a/config/sync/core.entity_form_display.paragraph.info_card.default.yml b/config/sync/core.entity_form_display.paragraph.info_card.default.yml index 09ea3df26..4ce671898 100644 --- a/config/sync/core.entity_form_display.paragraph.info_card.default.yml +++ b/config/sync/core.entity_form_display.paragraph.info_card.default.yml @@ -36,6 +36,11 @@ content: size: 60 placeholder: '' third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } hidden: created: true status: true diff --git a/config/sync/core.entity_form_display.paragraph.info_cards.default.yml b/config/sync/core.entity_form_display.paragraph.info_cards.default.yml index d5f57c809..62b9f0f25 100644 --- a/config/sync/core.entity_form_display.paragraph.info_cards.default.yml +++ b/config/sync/core.entity_form_display.paragraph.info_cards.default.yml @@ -49,6 +49,11 @@ content: size: 60 placeholder: '' third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } hidden: created: true status: true diff --git a/config/sync/core.entity_form_display.paragraph.news_teasers.default.yml b/config/sync/core.entity_form_display.paragraph.news_teasers.default.yml index e74b9b7ee..4e6ee387b 100644 --- a/config/sync/core.entity_form_display.paragraph.news_teasers.default.yml +++ b/config/sync/core.entity_form_display.paragraph.news_teasers.default.yml @@ -29,6 +29,11 @@ content: size: 60 placeholder: '' third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } hidden: created: true status: true diff --git a/config/sync/core.entity_form_display.paragraph.people_teasers.default.yml b/config/sync/core.entity_form_display.paragraph.people_teasers.default.yml index e6985feba..b62f9b36f 100644 --- a/config/sync/core.entity_form_display.paragraph.people_teasers.default.yml +++ b/config/sync/core.entity_form_display.paragraph.people_teasers.default.yml @@ -49,6 +49,11 @@ content: size: 60 placeholder: '' third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } hidden: created: true status: true diff --git a/config/sync/core.entity_form_display.paragraph.person_teaser.default.yml b/config/sync/core.entity_form_display.paragraph.person_teaser.default.yml index ff6fcfc25..aece1a8f4 100644 --- a/config/sync/core.entity_form_display.paragraph.person_teaser.default.yml +++ b/config/sync/core.entity_form_display.paragraph.person_teaser.default.yml @@ -37,6 +37,11 @@ content: size: 60 placeholder: '' third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } hidden: created: true status: true diff --git a/config/sync/core.entity_form_display.paragraph.quick_link_item.default.yml b/config/sync/core.entity_form_display.paragraph.quick_link_item.default.yml index eed427da9..42c4c45a0 100644 --- a/config/sync/core.entity_form_display.paragraph.quick_link_item.default.yml +++ b/config/sync/core.entity_form_display.paragraph.quick_link_item.default.yml @@ -29,6 +29,11 @@ content: size: 60 placeholder: '' third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } hidden: created: true status: true diff --git a/config/sync/core.entity_form_display.paragraph.quick_links.default.yml b/config/sync/core.entity_form_display.paragraph.quick_links.default.yml index 4814137a9..60f582961 100644 --- a/config/sync/core.entity_form_display.paragraph.quick_links.default.yml +++ b/config/sync/core.entity_form_display.paragraph.quick_links.default.yml @@ -49,6 +49,11 @@ content: size: 60 placeholder: '' third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } hidden: created: true status: true diff --git a/config/sync/core.entity_form_display.paragraph.quote.default.yml b/config/sync/core.entity_form_display.paragraph.quote.default.yml index f503ed1ad..5d3f8819a 100644 --- a/config/sync/core.entity_form_display.paragraph.quote.default.yml +++ b/config/sync/core.entity_form_display.paragraph.quote.default.yml @@ -43,6 +43,11 @@ content: size: 60 placeholder: '' third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } hidden: created: true status: true diff --git a/config/sync/field.field.media.document.field_media_file.yml b/config/sync/field.field.media.document.field_media_file.yml index 73fe1e04a..730f4c6a1 100644 --- a/config/sync/field.field.media.document.field_media_file.yml +++ b/config/sync/field.field.media.document.field_media_file.yml @@ -6,7 +6,14 @@ dependencies: - field.storage.media.field_media_file - media.type.document module: + - content_translation - file +third_party_settings: + content_translation: + translation_sync: + description: description + target_id: '0' + display: '0' id: media.document.field_media_file field_name: field_media_file entity_type: media diff --git a/config/sync/field.field.media.image.field_caption.yml b/config/sync/field.field.media.image.field_caption.yml index 8ee7fc74b..d8e6b7af3 100644 --- a/config/sync/field.field.media.image.field_caption.yml +++ b/config/sync/field.field.media.image.field_caption.yml @@ -12,7 +12,7 @@ bundle: image label: Caption description: '' required: false -translatable: false +translatable: true default_value: { } default_value_callback: '' settings: { } diff --git a/config/sync/field.field.media.image.field_media_credit.yml b/config/sync/field.field.media.image.field_media_credit.yml index 33ea0889d..30ad21cb8 100644 --- a/config/sync/field.field.media.image.field_media_credit.yml +++ b/config/sync/field.field.media.image.field_media_credit.yml @@ -12,7 +12,7 @@ bundle: image label: Credit description: '' required: false -translatable: false +translatable: true default_value: { } default_value_callback: '' settings: { } diff --git a/config/sync/field.field.media.image.field_media_image.yml b/config/sync/field.field.media.image.field_media_image.yml index ae8fea162..7bede6c9e 100644 --- a/config/sync/field.field.media.image.field_media_image.yml +++ b/config/sync/field.field.media.image.field_media_image.yml @@ -6,7 +6,14 @@ dependencies: - field.storage.media.field_media_image - media.type.image module: + - content_translation - image +third_party_settings: + content_translation: + translation_sync: + alt: alt + title: title + file: '0' id: media.image.field_media_image field_name: field_media_image entity_type: media @@ -14,7 +21,7 @@ bundle: image label: Image description: '' required: true -translatable: false +translatable: true default_value: { } default_value_callback: '' settings: diff --git a/config/sync/field.field.paragraph.documents.field_documents.yml b/config/sync/field.field.paragraph.documents.field_documents.yml index 7ecd09010..40d20c3a1 100644 --- a/config/sync/field.field.paragraph.documents.field_documents.yml +++ b/config/sync/field.field.paragraph.documents.field_documents.yml @@ -13,7 +13,7 @@ bundle: documents label: Documents description: 'An uploaded file or document, such as a PDF.' required: true -translatable: false +translatable: true default_value: { } default_value_callback: '' settings: diff --git a/config/sync/field.field.paragraph.hero_image.field_image.yml b/config/sync/field.field.paragraph.hero_image.field_image.yml index 71a5c28bd..8467e285b 100644 --- a/config/sync/field.field.paragraph.hero_image.field_image.yml +++ b/config/sync/field.field.paragraph.hero_image.field_image.yml @@ -13,7 +13,7 @@ bundle: hero_image label: Image description: '' required: true -translatable: false +translatable: true default_value: { } default_value_callback: '' settings: diff --git a/config/sync/field.field.paragraph.hero_image.field_link.yml b/config/sync/field.field.paragraph.hero_image.field_link.yml index 421ba3665..dae29973f 100644 --- a/config/sync/field.field.paragraph.hero_image.field_link.yml +++ b/config/sync/field.field.paragraph.hero_image.field_link.yml @@ -14,7 +14,7 @@ bundle: hero_image label: Link description: '' required: false -translatable: false +translatable: true default_value: { } default_value_callback: '' settings: diff --git a/config/sync/field.field.paragraph.hero_image.field_subtitle.yml b/config/sync/field.field.paragraph.hero_image.field_subtitle.yml index de5eae539..2d8762072 100644 --- a/config/sync/field.field.paragraph.hero_image.field_subtitle.yml +++ b/config/sync/field.field.paragraph.hero_image.field_subtitle.yml @@ -12,7 +12,7 @@ bundle: hero_image label: Subtitle description: '' required: false -translatable: false +translatable: true default_value: { } default_value_callback: '' settings: { } diff --git a/config/sync/field.field.paragraph.hero_image.field_title.yml b/config/sync/field.field.paragraph.hero_image.field_title.yml index ed45e73d1..60cdbb2fd 100644 --- a/config/sync/field.field.paragraph.hero_image.field_title.yml +++ b/config/sync/field.field.paragraph.hero_image.field_title.yml @@ -12,7 +12,7 @@ bundle: hero_image label: Title description: '' required: true -translatable: false +translatable: true default_value: { } default_value_callback: '' settings: { } diff --git a/config/sync/field.field.paragraph.info_card.field_info_card_header.yml b/config/sync/field.field.paragraph.info_card.field_info_card_header.yml index a5ecf5bca..5db260f3e 100644 --- a/config/sync/field.field.paragraph.info_card.field_info_card_header.yml +++ b/config/sync/field.field.paragraph.info_card.field_info_card_header.yml @@ -12,7 +12,7 @@ bundle: info_card label: Header description: 'The value that should appear on the top of the card (e.g. "100%").' required: true -translatable: false +translatable: true default_value: { } default_value_callback: '' settings: { } diff --git a/config/sync/field.field.paragraph.related_content.field_related_content.yml b/config/sync/field.field.paragraph.related_content.field_related_content.yml index a4e1b1fbb..187fd7e49 100644 --- a/config/sync/field.field.paragraph.related_content.field_related_content.yml +++ b/config/sync/field.field.paragraph.related_content.field_related_content.yml @@ -13,7 +13,7 @@ bundle: related_content label: 'Related content' description: '' required: true -translatable: true +translatable: false default_value: { } default_value_callback: '' settings: diff --git a/config/sync/language.content_settings.content_moderation_state.content_moderation_state.yml b/config/sync/language.content_settings.content_moderation_state.content_moderation_state.yml new file mode 100644 index 000000000..76688a1ee --- /dev/null +++ b/config/sync/language.content_settings.content_moderation_state.content_moderation_state.yml @@ -0,0 +1,11 @@ +uuid: 8f7d5347-b7a6-436f-9c50-af240033157d +langcode: en +status: true +dependencies: + module: + - content_moderation +id: content_moderation_state.content_moderation_state +target_entity_type_id: content_moderation_state +target_bundle: content_moderation_state +default_langcode: site_default +language_alterable: false diff --git a/config/sync/language.content_settings.media.document.yml b/config/sync/language.content_settings.media.document.yml index c4f3e996c..b43b03ccb 100644 --- a/config/sync/language.content_settings.media.document.yml +++ b/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/config/sync/language.content_settings.media.image.yml b/config/sync/language.content_settings.media.image.yml index ef87027bf..a6c885484 100644 --- a/config/sync/language.content_settings.media.image.yml +++ b/config/sync/language.content_settings.media.image.yml @@ -15,4 +15,4 @@ id: media.image target_entity_type_id: media target_bundle: image default_langcode: site_default -language_alterable: false +language_alterable: true diff --git a/config/sync/language.content_settings.media.video.yml b/config/sync/language.content_settings.media.video.yml index 33bf2c626..64ec85d22 100644 --- a/config/sync/language.content_settings.media.video.yml +++ b/config/sync/language.content_settings.media.video.yml @@ -4,8 +4,15 @@ status: true dependencies: config: - media.type.video + module: + - content_translation +third_party_settings: + content_translation: + enabled: true + bundle_settings: + untranslatable_fields_hide: '0' id: media.video target_entity_type_id: media target_bundle: video default_langcode: site_default -language_alterable: false +language_alterable: true diff --git a/config/sync/language.content_settings.node.landing_page.yml b/config/sync/language.content_settings.node.landing_page.yml index 90c3705ab..79bf9a2ac 100644 --- a/config/sync/language.content_settings.node.landing_page.yml +++ b/config/sync/language.content_settings.node.landing_page.yml @@ -10,7 +10,7 @@ third_party_settings: content_translation: enabled: true bundle_settings: - untranslatable_fields_hide: '0' + untranslatable_fields_hide: '1' id: node.landing_page target_entity_type_id: node target_bundle: landing_page diff --git a/config/sync/language.content_settings.node.news.yml b/config/sync/language.content_settings.node.news.yml index f82bb24e8..692acd3f9 100644 --- a/config/sync/language.content_settings.node.news.yml +++ b/config/sync/language.content_settings.node.news.yml @@ -10,7 +10,7 @@ third_party_settings: content_translation: enabled: true bundle_settings: - untranslatable_fields_hide: '0' + untranslatable_fields_hide: '1' id: node.news target_entity_type_id: node target_bundle: news diff --git a/config/sync/language.content_settings.paragraph.accordion.yml b/config/sync/language.content_settings.paragraph.accordion.yml new file mode 100644 index 000000000..10a7e59f8 --- /dev/null +++ b/config/sync/language.content_settings.paragraph.accordion.yml @@ -0,0 +1,18 @@ +uuid: a30a4ac2-c8fc-4b94-b5c8-05daaa58858b +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.accordion + module: + - content_translation +third_party_settings: + content_translation: + enabled: true + bundle_settings: + untranslatable_fields_hide: '0' +id: paragraph.accordion +target_entity_type_id: paragraph +target_bundle: accordion +default_langcode: site_default +language_alterable: true diff --git a/config/sync/language.content_settings.paragraph.accordion_item.yml b/config/sync/language.content_settings.paragraph.accordion_item.yml new file mode 100644 index 000000000..dc7bfea1c --- /dev/null +++ b/config/sync/language.content_settings.paragraph.accordion_item.yml @@ -0,0 +1,18 @@ +uuid: 616a6bae-54cd-44c3-90ad-caedeffa7dce +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.accordion_item + module: + - content_translation +third_party_settings: + content_translation: + enabled: true + bundle_settings: + untranslatable_fields_hide: '0' +id: paragraph.accordion_item +target_entity_type_id: paragraph +target_bundle: accordion_item +default_langcode: site_default +language_alterable: true diff --git a/config/sync/language.content_settings.paragraph.documents.yml b/config/sync/language.content_settings.paragraph.documents.yml new file mode 100644 index 000000000..e82e60341 --- /dev/null +++ b/config/sync/language.content_settings.paragraph.documents.yml @@ -0,0 +1,18 @@ +uuid: 9237168d-3250-4b4c-86a8-5ff6a4e17cd6 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.documents + module: + - content_translation +third_party_settings: + content_translation: + enabled: true + bundle_settings: + untranslatable_fields_hide: '0' +id: paragraph.documents +target_entity_type_id: paragraph +target_bundle: documents +default_langcode: site_default +language_alterable: true diff --git a/config/sync/language.content_settings.paragraph.hero_image.yml b/config/sync/language.content_settings.paragraph.hero_image.yml index b57b71b39..47f7273cd 100644 --- a/config/sync/language.content_settings.paragraph.hero_image.yml +++ b/config/sync/language.content_settings.paragraph.hero_image.yml @@ -8,11 +8,11 @@ dependencies: - content_translation third_party_settings: content_translation: - enabled: false + enabled: true bundle_settings: untranslatable_fields_hide: '0' id: paragraph.hero_image target_entity_type_id: paragraph target_bundle: hero_image default_langcode: site_default -language_alterable: false +language_alterable: true diff --git a/config/sync/language.content_settings.paragraph.info_card.yml b/config/sync/language.content_settings.paragraph.info_card.yml new file mode 100644 index 000000000..79017f15e --- /dev/null +++ b/config/sync/language.content_settings.paragraph.info_card.yml @@ -0,0 +1,18 @@ +uuid: f7ea31de-c067-4bdd-bf62-01be09de717e +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.info_card + module: + - content_translation +third_party_settings: + content_translation: + enabled: true + bundle_settings: + untranslatable_fields_hide: '0' +id: paragraph.info_card +target_entity_type_id: paragraph +target_bundle: info_card +default_langcode: site_default +language_alterable: true diff --git a/config/sync/language.content_settings.paragraph.info_cards.yml b/config/sync/language.content_settings.paragraph.info_cards.yml new file mode 100644 index 000000000..bfd11d955 --- /dev/null +++ b/config/sync/language.content_settings.paragraph.info_cards.yml @@ -0,0 +1,18 @@ +uuid: 66d9483c-4200-4fda-9ed7-575ff2a5fb76 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.info_cards + module: + - content_translation +third_party_settings: + content_translation: + enabled: true + bundle_settings: + untranslatable_fields_hide: '0' +id: paragraph.info_cards +target_entity_type_id: paragraph +target_bundle: info_cards +default_langcode: site_default +language_alterable: true diff --git a/config/sync/language.content_settings.paragraph.news_teasers.yml b/config/sync/language.content_settings.paragraph.news_teasers.yml new file mode 100644 index 000000000..6b7e8a998 --- /dev/null +++ b/config/sync/language.content_settings.paragraph.news_teasers.yml @@ -0,0 +1,18 @@ +uuid: 9e69f89c-b356-4786-b706-3ff660a2e618 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.news_teasers + module: + - content_translation +third_party_settings: + content_translation: + enabled: true + bundle_settings: + untranslatable_fields_hide: '0' +id: paragraph.news_teasers +target_entity_type_id: paragraph +target_bundle: news_teasers +default_langcode: site_default +language_alterable: true diff --git a/config/sync/language.content_settings.paragraph.people_teasers.yml b/config/sync/language.content_settings.paragraph.people_teasers.yml new file mode 100644 index 000000000..34a616d21 --- /dev/null +++ b/config/sync/language.content_settings.paragraph.people_teasers.yml @@ -0,0 +1,18 @@ +uuid: 0fc364eb-11e2-4739-990a-5868dcd93688 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.people_teasers + module: + - content_translation +third_party_settings: + content_translation: + enabled: true + bundle_settings: + untranslatable_fields_hide: '0' +id: paragraph.people_teasers +target_entity_type_id: paragraph +target_bundle: people_teasers +default_langcode: site_default +language_alterable: true diff --git a/config/sync/language.content_settings.paragraph.person_teaser.yml b/config/sync/language.content_settings.paragraph.person_teaser.yml new file mode 100644 index 000000000..9ef3a4a76 --- /dev/null +++ b/config/sync/language.content_settings.paragraph.person_teaser.yml @@ -0,0 +1,18 @@ +uuid: 59acd341-f5ae-41a5-9287-898bd40c6b08 +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.person_teaser + module: + - content_translation +third_party_settings: + content_translation: + enabled: true + bundle_settings: + untranslatable_fields_hide: '0' +id: paragraph.person_teaser +target_entity_type_id: paragraph +target_bundle: person_teaser +default_langcode: site_default +language_alterable: true diff --git a/config/sync/language.content_settings.paragraph.quick_link_item.yml b/config/sync/language.content_settings.paragraph.quick_link_item.yml new file mode 100644 index 000000000..cf00e5a18 --- /dev/null +++ b/config/sync/language.content_settings.paragraph.quick_link_item.yml @@ -0,0 +1,18 @@ +uuid: a815df71-044f-406c-ad55-16b32af1d1df +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.quick_link_item + module: + - content_translation +third_party_settings: + content_translation: + enabled: true + bundle_settings: + untranslatable_fields_hide: '0' +id: paragraph.quick_link_item +target_entity_type_id: paragraph +target_bundle: quick_link_item +default_langcode: site_default +language_alterable: true diff --git a/config/sync/language.content_settings.paragraph.quick_links.yml b/config/sync/language.content_settings.paragraph.quick_links.yml new file mode 100644 index 000000000..8a7a39eb0 --- /dev/null +++ b/config/sync/language.content_settings.paragraph.quick_links.yml @@ -0,0 +1,18 @@ +uuid: b3c90923-db8a-44fa-a8ef-1f747f1090fd +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.quick_links + module: + - content_translation +third_party_settings: + content_translation: + enabled: true + bundle_settings: + untranslatable_fields_hide: '0' +id: paragraph.quick_links +target_entity_type_id: paragraph +target_bundle: quick_links +default_langcode: site_default +language_alterable: true diff --git a/config/sync/language.content_settings.paragraph.quote.yml b/config/sync/language.content_settings.paragraph.quote.yml new file mode 100644 index 000000000..d981d9cff --- /dev/null +++ b/config/sync/language.content_settings.paragraph.quote.yml @@ -0,0 +1,18 @@ +uuid: cad09196-f480-4373-9949-4fb7ead241ce +langcode: en +status: true +dependencies: + config: + - paragraphs.paragraphs_type.quote + module: + - content_translation +third_party_settings: + content_translation: + enabled: true + bundle_settings: + untranslatable_fields_hide: '0' +id: paragraph.quote +target_entity_type_id: paragraph +target_bundle: quote +default_langcode: site_default +language_alterable: true diff --git a/web/modules/custom/server_general/server_general.module b/web/modules/custom/server_general/server_general.module index 70dfa4d2c..ac38f337a 100644 --- a/web/modules/custom/server_general/server_general.module +++ b/web/modules/custom/server_general/server_general.module @@ -353,3 +353,61 @@ function server_general_preprocess_media_oembed_iframe(array &$variables) { $variables['media'] = IFrameMarkup::create(str_replace('youtube.com/', 'youtube-nocookie.com/', $variables['media'])); } } + +/** + * Implements hook_form_FORM_ID_alter() for language_content_settings_form(). + * + * When admin visits the content translation settings page, the following code + * will enable the translations for any newly created paragraphs. + */ +function server_general_form_language_content_settings_form_alter(array &$form, FormStateInterface $form_state) { + if (empty($form['settings']['paragraph'])) { + return; + } + + foreach ($form['settings']['paragraph'] as $key => $paragraph_element) { + if (!is_array($paragraph_element) || empty($paragraph_element['translatable']) || $paragraph_element['translatable']['#type'] !== 'checkbox') { + continue; + } + + // Proceed only if this is a newly created paragraph and thus there's no + // translation config for the paragraph yet. + // We do this by checking for existence of the translation config. + // We don't use \Drupal::service('content_translation.manager')->isEnabled() + // because it returns FALSE for both the following cases: + // 1. An entity bundle where translation has been disabled intentionally. + // 1. An entity bundle where translation has not been configured yet. + $translation_config = \Drupal::configFactory()->get("language.content_settings.paragraph.{$key}"); + if (!empty($translation_config->getRawData())) { + continue; + } + + // Check the box to make the paragraph translatable. + $form['settings']['paragraph'][$key]['translatable']['#default_value'] = TRUE; + + // Check the boxes to make the fields translatable. + foreach ($paragraph_element['fields'] as $key2 => $field_element) { + // Uncheck the 'status' & 'created' fields. + if (in_array($key2, ['status', 'created'])) { + $form['settings']['paragraph'][$key]['fields'][$key2]['#default_value'] = FALSE; + continue; + } + + // Skip if not a valid field. + $field_definition = \Drupal::entityDefinitionUpdateManager()->getFieldStorageDefinition($key2, 'paragraph'); + if (empty($field_definition)) { + continue; + } + + // Uncheck any paragraph reference fields. + // @see https://www.drupal.org/docs/contributed-modules/paragraphs/multilingual-paragraphs-configuration. + if ($field_definition->getType() == 'entity_reference_revisions') { + $form['settings']['paragraph'][$key]['fields'][$key2]['#default_value'] = FALSE; + continue; + } + + // Check all other fields. + $form['settings']['paragraph'][$key]['fields'][$key2]['#default_value'] = TRUE; + } + } +}