From bd7af3d11b7af62e68dcccc1c96251bb4bf908df Mon Sep 17 00:00:00 2001 From: Chris Green Date: Fri, 22 Nov 2024 11:13:44 -0700 Subject: [PATCH] Close #3903 Add schema_metatag module as dependency of az_seo (#3909) --- composer.json | 1 + modules/custom/az_seo/az_seo.info.yml | 1 + modules/custom/az_seo/az_seo.install | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/composer.json b/composer.json index 41767f1452..9e5391e78a 100644 --- a/composer.json +++ b/composer.json @@ -105,6 +105,7 @@ "drupal/quick_node_clone": "1.17.0", "drupal/redirect": "1.10.0", "drupal/role_delegation": "1.3.0", + "drupal/schema_metatag": "3.0.3", "drupal/search_exclude": "3.0.0-beta1", "drupal/seckit": "2.0.3", "drupal/slick": "3.0.4", diff --git a/modules/custom/az_seo/az_seo.info.yml b/modules/custom/az_seo/az_seo.info.yml index 6bfecb0c5e..824495a007 100644 --- a/modules/custom/az_seo/az_seo.info.yml +++ b/modules/custom/az_seo/az_seo.info.yml @@ -10,3 +10,4 @@ dependencies: - metatag:metatag - metatag:metatag_open_graph - metatag:metatag_twitter_cards + - schema_metatag:schema_metatag diff --git a/modules/custom/az_seo/az_seo.install b/modules/custom/az_seo/az_seo.install index 47be1705b1..5894eccb56 100644 --- a/modules/custom/az_seo/az_seo.install +++ b/modules/custom/az_seo/az_seo.install @@ -20,3 +20,10 @@ function az_seo_update_last_removed() { */ function az_seo_update_1021001() { } + +/** + * Ensure schema_metatag module is installed. + */ +function az_seo_update_1021101() { + \Drupal::service('module_installer')->install(['schema_metatag']); +}