Skip to content
Snippets Groups Projects
Commit 1ee4d2e1 authored by Eric Bremner's avatar Eric Bremner
Browse files

Issue #3173863: better coding

parent 387fb8f2
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ class LayoutBuilderIdsRenderSubscriber implements EventSubscriberInterface { ...@@ -43,7 +43,7 @@ class LayoutBuilderIdsRenderSubscriber implements EventSubscriberInterface {
$layout_builder_id = $event->getComponent()->get('layout_builder_id'); $layout_builder_id = $event->getComponent()->get('layout_builder_id');
// If there is a layout builder id, then set it in the attributes. // If there is a layout builder id, then set it in the attributes.
if ($layout_builder_id !== NULL && $layout_builder_id !== '') { if ((string) $layout_builder_id) {
// Set the id attribute. // Set the id attribute.
$build['#attributes']['id'] = $layout_builder_id; $build['#attributes']['id'] = $layout_builder_id;
......
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