Pull merge.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / hook / plugin_filter_TYPE_alter.twig
1 /**
2  * Implements hook_plugin_filter_TYPE_alter().
3  */
4 function {{ machine_name }}_plugin_filter_TYPE_alter(array &$definitions, array $extra, $consumer) {
5   // Remove the "Help" block from the Block UI list.
6   if ($consumer == 'block_ui') {
7     unset($definitions['help_block']);
8   }
9
10   // If the theme is specified, remove the branding block from the Bartik theme.
11   if (isset($extra['theme']) && $extra['theme'] === 'bartik') {
12     unset($definitions['system_branding_block']);
13   }
14
15   // Remove the "Main page content" block from everywhere.
16   unset($definitions['system_main_block']);
17 }