Commit ae908d92 authored by kishor kolekar's avatar kishor kolekar Committed by De Araujo, Renato [CONBR Non-J&J]
Browse files

Issue #3312035 by kishor_kolekar, RenatoG: Warning: Trying to access array...

Issue #3312035 by kishor_kolekar, RenatoG: Warning: Trying to access array offset on value of type null in Drupal\block_class\Service\BlockClassHelperService->validateDynamicClasses()
parent ee1c9256
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -931,7 +931,7 @@ class BlockClassHelperService {
    unset($third_party_settings['block_class']['remove_item']);

    // Clear empty values.
    $third_party_settings['block_class'] = array_filter($third_party_settings['block_class']);
    $third_party_settings['block_class'] = !empty($third_party_settings['block_class']) ?? array_filter($third_party_settings['block_class']);

    // Merge with all third party settings.
    $all_third_party_settings = $form_state->getValue('third_party_settings');