$theme->incompatible_engine =
isset($theme->info
['engine'
]) && !
isset($theme->owner
);
// Confirm that module dependencies are available.
$theme->incompatible_module = FALSE;
// Confirm that the user has permission to enable modules.
$theme->insufficient_module_permissions = FALSE;
} // Check module dependencies.
if ($theme->module_dependencies
) { $modules =
$this->moduleExtensionList->
getList();
foreach ($theme->module_dependencies
as $dependency =>
$dependency_object) { if ($incompatible =
$this->
checkDependencyMessage($modules,
$dependency,
$dependency_object)) { $theme->module_dependencies_list
[$dependency] =
$incompatible;
$theme->incompatible_module = TRUE;
continue;
} // @todo Add logic for not displaying hidden modules in
// https://drupal.org/node/3117829.
$module_name =
$modules[$dependency]->info
['name'
];
$theme->module_dependencies_list
[$dependency] =
$modules[$dependency]->status ?
$this->
t('@module_name',
['@module_name' =>
$module_name]) :
$this->
t('@module_name (<span class="admin-disabled">disabled</span>)',
['@module_name' =>
$module_name]);
// Create an additional property that contains only disabled module