Skip to content

Commit

Permalink
Closes #3498 Make config dependencies, module dependencies in az_seo. (
Browse files Browse the repository at this point in the history
…#3499)

Co-authored-by: Joe Parsons <[email protected]>
  • Loading branch information
trackleft and joeparsons committed Aug 9, 2024
1 parent 0bc2062 commit 57dfab4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/custom/az_seo/az_seo.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ type: module
core_version_requirement: ^9 || ^10
package: The University of Arizona
dependencies:
- az_news:az_news
- az_event:az_event
- az_person:az_person
- az_flexible_page:az_flexible_page
- xmlsitemap:xmlsitemap
- xmlsitemap:xmlsitemap_engines
- redirect:redirect
Expand Down
18 changes: 18 additions & 0 deletions modules/custom/az_seo/az_seo.install
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,21 @@ function az_seo_update_last_removed() {
// Remove updates added before 2.6.0.
return 9201;
}

/**
* Install az_news, az_person, az_event, az_flexible_page modules.
*
* Install modules that contain configuration dependencies.
*
* @see https://github.com/az-digital/az_quickstart/issues/3498
* @see https://github.com/az-digital/az_quickstart/pull/3499
*/
function az_seo_update_1021001() {
$modules_to_install = [
'az_news',
'az_event',
'az_person',
'az_flexible_page',
];
\Drupal::service('module_installer')->install($modules_to_install);
}

0 comments on commit 57dfab4

Please sign in to comment.