Skip to content
Snippets Groups Projects
Commit f2b40295 authored by Matt Glaman's avatar Matt Glaman Committed by renatog
Browse files

Issue #3228149 by mglaman, RenatoG: Duplicate menu blocks appear in Layout...

Issue #3228149 by mglaman, RenatoG: Duplicate menu blocks appear in Layout Builder choose block form
parent 4aa56f8c
No related branches found
No related tags found
No related merge requests found
......@@ -125,3 +125,14 @@ function menu_block_preprocess_block(&$variables) {
$variables['configuration']['label'] = $config_label;
}
}
/**
* Implements hook_plugin_filter_TYPE__CONSUMER_alter().
*/
function menu_block_plugin_filter_block__layout_builder_alter(array &$definitions, array $extra) {
foreach ($definitions as $key => $definition) {
if ($definition['id'] === 'system_menu_block') {
unset($definitions[$key]);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment