Skip to content
Snippets Groups Projects
Commit 4052117e authored by Mikael Meulle's avatar Mikael Meulle
Browse files

WIP

parent 78dc4399
Branches
Tags
1 merge request!147Disallow some blocks
......@@ -288,7 +288,7 @@ class BlockSource extends SourcePluginBase {
// @todo Add a way to alter this list properly (hook, event, etc).
$whitelisted_blocks = [
"id" => ["search_form_block", "system_menu_block"],
"provider" => ["layout_builder", "ui_patterns", "ui_patterns_blocks", "views"],
"provider" => ["layout_builder", "views"],
];
foreach ($definitions as $plugin_id => $definition) {
if (!isset($metadataAboutBlocks[$plugin_id])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment