You are here

function defaultcontent_install in Default Content 8

Same name and namespace in other branches
  1. 7.2 defaultcontent.install \defaultcontent_install()
  2. 7 defaultcontent.install \defaultcontent_install()

Implements hook_install(). check all existing modules for imported content()

File

./defaultcontent.install, line 8

Code

function defaultcontent_install() {
  foreach (\Drupal::moduleHandler()
    ->getModuleList() as $module => $null) {
    \Drupal::service('defaultcontent.manager')
      ->importContent($module);
  }
}