Commit a8778d12 authored by Igor Biki's avatar Igor Biki
Browse files

ISTWCMS-3908 Adding limited blocks to override. Updating config form url not to use underscore.

parent 612a8a5a
......@@ -75,7 +75,7 @@ class AllowedBlocks extends LayoutBuilderRestrictionBase {
->get('allowed_blocks');
$allowed_block_definitions = [];
if ($allowed_blocks && isset($context['section_storage']) && $context['section_storage']->getPluginId() === 'dashboards') {
if ($allowed_blocks && isset($context['section_storage']) && $context['section_storage']->getPluginId() === 'dashboards_override') {
foreach ($allowed_blocks as $key => $allowed_block) {
if (isset($definitions[$key])) {
$allowed_block_definitions[$key] = $definitions[$key];
......
uw_dashboard.allowed_blocks:
path: '/admin/dashboard/allowed_blocks'
path: '/admin/dashboard/allowed-blocks'
defaults:
_form: '\Drupal\uw_dashboard\Form\AllowedBlocksForm'
_title: 'Blocks allowed on the Dashboard'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment