function __defaultcontent_import_multiple in Default Content 8
File
- ./
defaultcontent.module, line 29
Code
function __defaultcontent_import_multiple($configs) {
$langs = array_keys(\Drupal::languageManager()
->getLanguages());
foreach ($configs as $config) {
if (in_array($config
->get('langcode'), $langs)) {
defaultcontent_import_one($config);
}
}
}