function patchinfo_preprocess_update_report in PatchInfo 8.2
Same name and namespace in other branches
- 8 patchinfo.module \patchinfo_preprocess_update_report()
Implements hook_preprocess_HOOK() for update-report.html.twig.
File
- ./
patchinfo.module, line 353 - Patch Info primary module file.
Code
function patchinfo_preprocess_update_report(&$variables) {
$config = \Drupal::config('patchinfo.settings');
// Provide excluded modules variable.
$variables['excluded_modules'] = [
'#theme' => 'patchinfo_excluded_modules',
'#excluded_modules' => (array) $config
->get('exclude from update check'),
'#attached' => [
'library' => [
'patchinfo/patchinfo',
],
],
];
}