function default_content_modules_installed in Default Content for D8 8
Same name and namespace in other branches
- 2.0.x default_content.module \default_content_modules_installed()
Implements hook_modules_installed().
File
- ./
default_content.module, line 11 - Installs default content on the behalf of modules at time of install.
Code
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.importer')
->importContent($module);
}
}
}