Hello, I've encountered an error while attempting to incorporate Layout Builder Restrictions module to only show PDB Vue.JS blocks in the 'Add Block' UI.
I get the following error (below) while attempting to save my restrictions. It is due to the fact that the name in the pdb_vue.info.yml contains a dot in it.
There is a similar issue with another module that resolved this issue by removing the dot (https://www.drupal.org/project/toc_js/issues/3056169)
The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">Drupal\Core\Config\ConfigValueException</em>: PDB Vue.js key contains a dot which is not supported. in <em class="placeholder">Drupal\Core\Config\ConfigBase->validateKeys()</em> (line <em class="placeholder">211</em> of <em class="placeholder">core/lib/Drupal/Core/Config/ConfigBase.php</em>). <pre class="backtrace">Drupal\Core\Config\ConfigBase->validateKeys(Array) (Line: 214)
Drupal\Core\Config\ConfigBase->validateKeys(Array) (Line: 214)
Drupal\Core\Config\ConfigBase->validateKeys(Array) (Line: 214)
Drupal\Core\Config\ConfigBase->validateKeys(Array) (Line: 161)
Drupal\Core\Config\ConfigBase->setData(Array) (Line: 107)
Drupal\Core\Config\Config->setData(Array) (Line: 283)
Drupal\Core\Config\Entity\ConfigEntityStorage->doSave('node.bento.default', Object) (Line: 449)
Drupal\Core\Entity\EntityStorageBase->save(Object) (Line: 263)
Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object) (Line: 394)
Drupal\Core\Entity\EntityBase->save() (Line: 613)
Drupal\Core\Config\Entity\ConfigEntityBase->save() (Line: 296)
Drupal\Core\Entity\EntityForm->save(Array, Object)
call_user_func_array(Array, Array) (Line: 111)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 590)
Drupal\Core\Form\FormBuilder->processForm('entity_view_display_edit_form', Array, Object) (Line: 319)
Drupal\Core\Form\FormBuilder->buildForm('entity_view_display_edit_form', Object) (Line: 93)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 693)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
</pre>
Comments
Comment #2
yogen.prasad commentedComment #3
yogen.prasad commentedComment #5
yogen.prasad commentedComment #7
segovia94 commented