Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / hook / system_themes_page_alter.twig
1 /**
2  * Implements hook_system_themes_page_alter().
3  */
4 function {{ machine_name }}_system_themes_page_alter(&$theme_groups) {
5   foreach ($theme_groups as $state => &$group) {
6     foreach ($theme_groups[$state] as &$theme) {
7       // Add a foo link to each list of theme operations.
8       $theme->operations[] = [
9         'title' => t('Foo'),
10         'url' => Url::fromRoute('system.themes_page'),
11         'query' => ['theme' => $theme->getName()]
12       ];
13     }
14   }
15 }