public static function getTypeList() : array
    {
        $arResult = [
            self::PROMO_BLOCK_TYPE => Lang::get('lovata.shopaholic::lang.field.promo_block_type'),
        ];

        $arEventDataList = Event::fire(self::EVENT_GET_TYPE_LIST);
        if (empty($arEventDataList)) {
            return $arResult;
        }

        foreach ($arEventDataList as $arEventData) {
            if (empty($arEventData) || !is_array($arEventData)) {
                continue;
            }

            $arResult = array_merge($arResult, $arEventData);
        }

        return $arResult;
    }
public static function getTypeList() : array
    {
        $arResult = [
            self::PROMO_BLOCK_TYPE => Lang::get('lovata.shopaholic::lang.field.promo_block_type'),
        ];

        $arEventDataList = Event::fire(self::EVENT_GET_TYPE_LIST);
        if (empty($arEventDataList)) {
            return $arResult;
        }

        foreach ($arEventDataList as $arEventData) {
            if (empty($arEventData) || !is_array($arEventData)) {
                continue;
            }

            $arResult = array_merge($arResult, $arEventData);
        }

        return $arResult;
    }
public static function getTypeList ( ) : array { $ arResult = [ self :: PROMO_BLOCK_TYPE => Lang :: get ( 'lovata.shopaholic::lang.field.promo_block_type' ) , ] ; $ arEventDataList = Event :: fire ( self :: EVENT_GET_TYPE_LIST ) ; if ( empty ( $ arEventDataList ) ) { return $ arResult ; } foreach ( $ arEventDataList as $ arEventData ) { if ( empty ( $ arEventData ) || ! is_array ( $ arEventData ) ) { continue ; } $ arResult = array_merge ( $ arResult , $ arEventData ) ; } return $ arResult ; }
Fire event and get promo content type list
@return array
Fire event and get promo content type list