Skip to content

Commit fa22f8e

Browse files
committed
Prevent warning created by passing non array when array is expected
1 parent 0e13d12 commit fa22f8e

File tree

1 file changed

+3
-0
lines changed
  • html/modules/custom/ghi_form_elements/src/Plugin/ConfigurationContainerItem

1 file changed

+3
-0
lines changed

html/modules/custom/ghi_form_elements/src/Plugin/ConfigurationContainerItem/ItemGroup.php

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ class ItemGroup extends ConfigurationContainerItemPluginBase implements Configur
2424
* {@inheritdoc}
2525
*/
2626
public function getLink() {
27+
if (empty($this->config['link'])) {
28+
return NULL;
29+
}
2730
return $this->getLinkFromConfiguration($this->config['link']);
2831
}
2932

0 commit comments

Comments
 (0)