From 7142cdffadc4c3eed090fb0a6cda9dcdbf0f20e3 Mon Sep 17 00:00:00 2001 From: berliner Date: Thu, 25 Jan 2024 23:57:01 +0100 Subject: [PATCH] Prevent warning created by passing non array when array is expected --- .../src/Plugin/ConfigurationContainerItem/ItemGroup.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/html/modules/custom/ghi_form_elements/src/Plugin/ConfigurationContainerItem/ItemGroup.php b/html/modules/custom/ghi_form_elements/src/Plugin/ConfigurationContainerItem/ItemGroup.php index 1f2cd59dd..d23223406 100644 --- a/html/modules/custom/ghi_form_elements/src/Plugin/ConfigurationContainerItem/ItemGroup.php +++ b/html/modules/custom/ghi_form_elements/src/Plugin/ConfigurationContainerItem/ItemGroup.php @@ -24,6 +24,9 @@ class ItemGroup extends ConfigurationContainerItemPluginBase implements Configur * {@inheritdoc} */ public function getLink() { + if (empty($this->config['link'])) { + return NULL; + } return $this->getLinkFromConfiguration($this->config['link']); }