Skip to content
Snippets Groups Projects
Commit f50c6c67 authored by vbouchet's avatar vbouchet
Browse files

Revert "Issue #3351162 by alexahumada: Undefined array key "" in...

Revert "Issue #3351162 by alexahumada: Undefined array key "" in Drupal\layout_builder_browser\Form\BlockForm"

This reverts commit c6040f2f.
parent c6040f2f
No related branches found
No related tags found
No related merge requests found
...@@ -49,8 +49,7 @@ class BlockForm extends EntityForm { ...@@ -49,8 +49,7 @@ class BlockForm extends EntityForm {
foreach ($definitions as $id => $definition) { foreach ($definitions as $id => $definition) {
$category_id = $category_label = $definition['category']; $category_id = $category_label = $definition['category'];
if ($definition['category'] instanceof TranslatableMarkup) { if ($definition['category'] instanceof TranslatableMarkup) {
$category_id = $definition['category']->getUntranslatedString(); $category_id = $category_label = $definition['category']->render();
$category_label = $definition['category']->render();
} }
$blocks[$category_id][$id] = $definition['admin_label']; $blocks[$category_id][$id] = $definition['admin_label'];
......
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