From 59c50dbcdcd70c947618f16a33d20aa7da4786dd Mon Sep 17 00:00:00 2001 From: Diego Pino Navarro Date: Mon, 17 May 2021 13:43:30 -0400 Subject: [PATCH] Fix D9 new thing --- .../NodeBearingStrawberryfieldSelection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plugin/EntityReferenceSelection/NodeBearingStrawberryfieldSelection.php b/src/Plugin/EntityReferenceSelection/NodeBearingStrawberryfieldSelection.php index b0a0bfb0..e02a3ad9 100644 --- a/src/Plugin/EntityReferenceSelection/NodeBearingStrawberryfieldSelection.php +++ b/src/Plugin/EntityReferenceSelection/NodeBearingStrawberryfieldSelection.php @@ -28,7 +28,7 @@ class NodeBearingStrawberryfieldSelection extends NodeSelection { protected function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') { $query = parent::buildEntityQuery($match, $match_operator); - $handler_settings = $this->configuration['handler_settings']; + $handler_settings = $this->configuration['handler_settings'] ?? []; if (!isset($handler_settings['filter'])) { return $query; } @@ -43,4 +43,4 @@ protected function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') } return $query; } -} \ No newline at end of file +}