diff --git a/composer.json b/composer.json index 1c753b0bd..95ef8d90b 100644 --- a/composer.json +++ b/composer.json @@ -83,6 +83,7 @@ "drupal/entity_browser": "2.6", "drupal/entity_reference_actions": "^1.0-beta5", "drupal/entity_reference_revisions": "^1.3", + "drupal/entity_usage": "^2.0-beta6", "drupal/field_group": "3.2", "drupal/focal_point": "^1.3", "drupal/facets": "^1.4", diff --git a/config/install/entity_usage.settings.yml b/config/install/entity_usage.settings.yml new file mode 100644 index 000000000..47f470005 --- /dev/null +++ b/config/install/entity_usage.settings.yml @@ -0,0 +1,30 @@ +track_enabled_base_fields: false +local_task_enabled_entity_types: + - media + - taxonomy_term +usage_controller_items_per_page: 25 +track_enabled_source_entity_types: + - node + - media + - taxonomy_term + - user +track_enabled_target_entity_types: + - node + - media + - taxonomy_term + - user +edit_warning_message_entity_types: + - media +delete_warning_message_entity_types: + - media +track_enabled_plugins: + - dynamic_entity_reference + - media_embed + - link + - linkit + - layout_builder + - entity_reference + - entity_embed + - html_link + - block_field +site_domains: { } diff --git a/config/update/thunder_update_8318.yml b/config/update/thunder_update_8318.yml new file mode 100644 index 000000000..d69ce691a --- /dev/null +++ b/config/update/thunder_update_8318.yml @@ -0,0 +1,3 @@ +__global_actions: + install_modules: + - entity_usage diff --git a/thunder.info.yml b/thunder.info.yml index 15479a387..df31b9f9b 100644 --- a/thunder.info.yml +++ b/thunder.info.yml @@ -57,6 +57,7 @@ install: - empty_fields:empty_fields - entity_reference_actions:entity_reference_actions - entity_browser:entity_browser_entity_form + - entity_usage:entity_usage - field_group:field_group - focal_point:focal_point - length_indicator:length_indicator diff --git a/thunder.install b/thunder.install index 32bf26e8f..cfcd36e31 100644 --- a/thunder.install +++ b/thunder.install @@ -225,3 +225,17 @@ function thunder_update_8317() { return t('The "Scheduled" menu entry was removed.'); } } + +/** + * Enable the entity_usage module. + */ +function thunder_update_8318() { + /** @var \Drupal\update_helper\Updater $updateHelper */ + $updateHelper = \Drupal::service('update_helper.updater'); + + // Execute configuration update definitions with logging of success. + $updateHelper->executeUpdate('thunder', 'thunder_update_8318'); + + // Output logged messages to related channel of update execution. + return $updateHelper->logger()->output(); +} diff --git a/updates_checklist.yml b/updates_checklist.yml index 07dad4ba9..96f07bc2e 100644 --- a/updates_checklist.yml +++ b/updates_checklist.yml @@ -54,3 +54,11 @@ v6.1.4: '#description_successful': '

Configuration is successfully updated.

' '#description_failed': '

We did not automatically update your sitemap config. Add the variants you want to have and the add another variant of type variant_index as the default sitemap.

' configuration_page: { '#text': 'Add variants', '#url': 'internal:/admin/config/search/simplesitemap/variants' } +v6.2.3: + '#title': 'Update to version v6.2.3' + '#description': '

These are the new features for this release:

' + thunder_update_8318: + '#title': 'Enable the entity_usage module.' + '#description': '

The entity_usage module enables the editor to see in which articles media items or taxonomy terms are used.

' + '#description_successful': '

Configuration is successfully updated.

' + '#description_failed': '

Update of configuration has failed.

'