Skip to content

Commit

Permalink
Closes #3445 Make config dependencies, module dependencies in az_para…
Browse files Browse the repository at this point in the history
…graphs:az_paragraphs_view (#3446)

Co-authored-by: Joe Parsons <[email protected]>
  • Loading branch information
trackleft and joeparsons committed Aug 9, 2024
1 parent 57dfab4 commit f7520fd
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ package: 'The University of Arizona - Experimental'
description: 'Provides a paragraph type to show two views side-by-side on desktop screens.'
core_version_requirement: ^9 || ^10
dependencies:
- az_news:az_news
- az_event:az_event
- az_person:az_person
- az_flexible_page:az_flexible_page
- az_paragraphs:az_paragraphs_view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

/**
* @file
* Install, update and uninstall functions for this module.
*/

/**
* 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/3445
* @see https://github.com/az-digital/az_quickstart/pull/3446
*/
function az_paragraphs_views_side_by_side_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 f7520fd

Please sign in to comment.