$dependencies_to_check =
array_intersect_key($data['dependencies'
],
array_flip(['module', 'theme', 'config'
]));
foreach ($dependencies_to_check as $type =>
$dependencies) { $diffs =
array_diff($dependencies,
$existing_dependencies[$type]);
if (!
empty($diffs)) { $message = FALSE;
switch ($type) { case 'module':
$message =
$this->
formatPlural( count($diffs),
'Configuration %name depends on the %module module that will not be installed after import.',
'Configuration %name depends on modules (%module) that will not be installed after import.',
['%name' =>
$name, '%module' =>
implode(', ',
$this->
getNames($diffs,
$module_data))] );
break;
case 'theme':
$message =
$this->
formatPlural( count($diffs),
'Configuration %name depends on the %theme theme that will not be installed after import.',
'Configuration %name depends on themes (%theme) that will not be installed after import.',
['%name' =>
$name, '%theme' =>
implode(', ',
$this->
getNames($diffs,
$theme_data))] );
break;