2 * Implements hook_plugin_filter_TYPE_alter().
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']);
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']);
15 // Remove the "Main page content" block from everywhere.
16 unset($definitions['system_main_block']);