You are here

function defaultcontent_modules_installed in Default Content 8

Implements hook_modules_installed(). check the newly installed modules for existing content.

File

./defaultcontent.install, line 19

Code

function defaultcontent_modules_installed($modules) {

  // @todo Move this to an event once we have HookEvent.
  foreach ($modules as $module) {
    if (!\Drupal::isConfigSyncing()) {
      \Drupal::service('defaultcontent.manager')
        ->importContent($module);
    }
  }
}