Commit 3448ae2f authored by gaydabura's avatar gaydabura Committed by Sam152

Issue #2684927 by gaydabura, Sam152, andypost: Move...

Issue #2684927 by gaydabura, Sam152, andypost: Move default_content_modules_installed to module file
parent d25ac98e
...@@ -15,17 +15,3 @@ function default_content_install() { ...@@ -15,17 +15,3 @@ function default_content_install() {
\Drupal::service('default_content.manager')->importContent($module); \Drupal::service('default_content.manager')->importContent($module);
} }
} }
/**
* Implements hook_modules_installed().
*/
function default_content_modules_installed($modules) {
// @todo Move this to an event once we have HookEvent.
foreach ($modules as $module) {
if (!\Drupal::isConfigSyncing()) {
\Drupal::service('default_content.manager')->importContent($module);
}
}
}
...@@ -16,4 +16,16 @@ function __default_content_entity_type_alter(array &$entity_types) { ...@@ -16,4 +16,16 @@ function __default_content_entity_type_alter(array &$entity_types) {
} }
} }
} }
\ No newline at end of file
/**
* Implements hook_modules_installed().
*/
function default_content_modules_installed($modules) {
// @todo Move this to an event once we have HookEvent.
foreach ($modules as $module) {
if (!\Drupal::isConfigSyncing()) {
\Drupal::service('default_content.manager')->importContent($module);
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment