diff --git a/modules/ad_entity_adtech_v2/src/Plugin/ad_entity/AdType/AdtechType.php b/modules/ad_entity_adtech_v2/src/Plugin/ad_entity/AdType/AdtechType.php index 9e46968..6909782 100644 --- a/modules/ad_entity_adtech_v2/src/Plugin/ad_entity/AdType/AdtechType.php +++ b/modules/ad_entity_adtech_v2/src/Plugin/ad_entity/AdType/AdtechType.php @@ -456,7 +456,8 @@ class AdtechType extends AdTypeBase { if ($config = $this->configFactory->get('ad_entity.settings')) { if ($global_settings = $config->get('adtech_v2_factory')) { if ($custom_slot = $global_settings['custom_slot']) { - $all_slots = array_column($custom_slot['slots'], 'name') ?? array_column($custom_slot, 'name'); + $custom_slot = $custom_slot['slots'] ?? $custom_slot; + $all_slots = array_column($custom_slot, 'name'); foreach ($all_slots as $slot) { $machine_name = str_replace(' ', '_', $slot); $slots[strtolower($machine_name)] = $this->stringTranslation->translate($slot);