5 * Hooks provided by the System module.
16 * Alters theme operation links.
18 * @param $theme_groups
19 * An associative array containing groups of themes.
21 * @see system_themes_page()
23 function hook_system_themes_page_alter(&$theme_groups) {
24 foreach ($theme_groups as $state => &$group) {
25 foreach ($theme_groups[$state] as &$theme) {
26 // Add a foo link to each list of theme operations.
27 $theme->operations[] = [
29 'url' => Url::fromRoute('system.themes_page'),
30 'query' => ['theme' => $theme->getName()],
37 * @} End of "addtogroup hooks".