From 46edfab214ca2e0055e5b9ad84d276d574c1edab Mon Sep 17 00:00:00 2001
From: Liam Morland <lkmorlan@493050.no-reply.drupal.org>
Date: Tue, 17 Nov 2020 20:29:35 +0000
Subject: [PATCH] Issue #3183052: Remove non-variable passed by reference

---
 src/EventSubscriber/LayoutBuilderIdsConfigureBlock.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/EventSubscriber/LayoutBuilderIdsConfigureBlock.php b/src/EventSubscriber/LayoutBuilderIdsConfigureBlock.php
index b24e382..6ebb701 100644
--- a/src/EventSubscriber/LayoutBuilderIdsConfigureBlock.php
+++ b/src/EventSubscriber/LayoutBuilderIdsConfigureBlock.php
@@ -30,7 +30,7 @@ class LayoutBuilderIdsConfigureBlock implements EventSubscriberInterface {
     if (in_array($form['#form_id'], ['layout_builder_add_block', 'layout_builder_update_block'], TRUE)) {
 
       // Pull out the layout_builder_id from config.
-      $layout_builder_id = &$event->getFormState()->getFormObject()->getCurrentComponent()->get('layout_builder_id');
+      $layout_builder_id = $event->getFormState()->getFormObject()->getCurrentComponent()->get('layout_builder_id');
 
       // Add the section id to the configure form.
       $form['settings']['layout_builder_id'] = [
-- 
GitLab