function template_preprocess_patchinfo_patches in PatchInfo 8.2
Same name and namespace in other branches
- 8 patchinfo.module \template_preprocess_patchinfo_patches()
Prepares variables for a patch listing of a module and its submodules.
Default template: patchinfo-patches.html.twig.
Parameters
array $variables: An associative array containing:
- patches: List of patch information for a module and its submodules.
File
- ./
patchinfo.module, line 417 - Patch Info primary module file.
Code
function template_preprocess_patchinfo_patches(array &$variables) {
// Prepare patch list for use in template.
$variables['patches'] = [
'#theme' => 'item_list',
'#items' => $variables['patches'],
'#attached' => [
'library' => [
'patchinfo/patchinfo',
],
],
];
}