diff --git a/docroot/profiles/lagunita/summer_profile/modules/summer_helper/summer_helper.info.yml b/docroot/profiles/lagunita/summer_profile/modules/summer_helper/summer_helper.info.yml index a0b54bf1..d8049392 100644 --- a/docroot/profiles/lagunita/summer_profile/modules/summer_helper/summer_helper.info.yml +++ b/docroot/profiles/lagunita/summer_profile/modules/summer_helper/summer_helper.info.yml @@ -3,3 +3,5 @@ type: module description: 'Helper module for Summer website' package: Stanford core_version_requirement: ^10 || ^11 +dependencies: + - scheduler:scheduler diff --git a/docroot/profiles/lagunita/summer_profile/modules/summer_helper/summer_helper.install b/docroot/profiles/lagunita/summer_profile/modules/summer_helper/summer_helper.install index fbc17016..ccde1ee7 100644 --- a/docroot/profiles/lagunita/summer_profile/modules/summer_helper/summer_helper.install +++ b/docroot/profiles/lagunita/summer_profile/modules/summer_helper/summer_helper.install @@ -5,6 +5,13 @@ * summer_helper.install */ +/** + * Implements hook_install(). + */ +function summer_helper_install() { + \Drupal::service('scheduler.manager')->invalidatePluginCache(); +} + /** * Move card background image behavior settings. */ @@ -40,9 +47,11 @@ function summer_helper_update_9002() { * Install new summer entity type. */ function summer_helper_update_9003() { - $press_type = \Drupal::entityTypeManager()->getDefinition('summer_entity_type'); - \Drupal::entityDefinitionUpdateManager()->installEntityType($press_type); + \Drupal::service('scheduler.manager')->invalidatePluginCache(); + $summer_type = \Drupal::entityTypeManager() + ->getDefinition('summer_entity_type'); + \Drupal::entityDefinitionUpdateManager()->installEntityType($summer_type); - $press_entity = \Drupal::entityTypeManager()->getDefinition('summer_entity'); - \Drupal::entityDefinitionUpdateManager()->installEntityType($press_entity); + $summer_entity = \Drupal::entityTypeManager()->getDefinition('summer_entity'); + \Drupal::entityDefinitionUpdateManager()->installEntityType($summer_entity); }