diff --git a/html/modules/custom/ghi_form_elements/src/Element/EntityAttachmentSelect.php b/html/modules/custom/ghi_form_elements/src/Element/EntityAttachmentSelect.php index 790dd33d6..eff857968 100644 --- a/html/modules/custom/ghi_form_elements/src/Element/EntityAttachmentSelect.php +++ b/html/modules/custom/ghi_form_elements/src/Element/EntityAttachmentSelect.php @@ -192,7 +192,7 @@ public static function processEntityAttachmentSelect(array &$element, FormStateI 'wrapper' => $wrapper_id, ], '#attributes' => [ - 'class' => [$current_action != 'select_entities' ? 'visually-hidden' : NULL], + 'class' => $current_action != 'select_entities' ? ['visually-hidden'] : [], ], ]; $element['actions']['change_entities'] = [ @@ -204,7 +204,7 @@ public static function processEntityAttachmentSelect(array &$element, FormStateI 'wrapper' => $wrapper_id, ], '#attributes' => [ - 'class' => [$current_action != 'select_attachments' ? 'visually-hidden' : NULL], + 'class' => $current_action != 'select_attachments' ? ['visually-hidden'] : [], ], '#limit_validation_errors' => [], '#submit' => [], @@ -218,7 +218,7 @@ public static function processEntityAttachmentSelect(array &$element, FormStateI 'wrapper' => $wrapper_id, ], '#attributes' => [ - 'class' => [$current_action != 'select_attachments' ? 'visually-hidden' : NULL], + 'class' => $current_action != 'select_attachments' ? ['visually-hidden'] : [], ], ]; if (!empty($element['#next_step']) && !empty($element['#container_wrapper'])) {