From f1e13bad1535a4dbea63eb96f199fce500d968c0 Mon Sep 17 00:00:00 2001 From: Md Nadim Hossain Date: Fri, 13 Dec 2024 09:55:50 +1100 Subject: [PATCH] [SD-563] Added hook to roll out tide_data_driven_component for all cms. --- tide_core.install | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tide_core.install b/tide_core.install index a6000519..f3229b2d 100644 --- a/tide_core.install +++ b/tide_core.install @@ -316,3 +316,15 @@ function tide_core_update_10010() { $module_installer->install(['tide_tfa']); } } + +/** + * Enabled tide_data_driven_component module. + */ +function tide_core_update_10011() { + $moduleHandler = \Drupal::service('module_handler'); + $moduleInstaller = \Drupal::service('module_installer'); + // Enable tide_data_driven_component. + if (!$moduleHandler->moduleExists('tide_data_driven_component')) { + $moduleInstaller->install(['tide_data_driven_component']); + } +}