protected function getCustomSortingList() : array
    {
        $arEventResult = Event::fire('shopaholic.promo_block.sorting.get.list', [$this->sValue]);
        if (empty($arEventResult)) {
            return [];
        }

        $arElementIDList = [];
        foreach ($arEventResult as $arEventPromoBlockIDList) {
            if (empty($arEventPromoBlockIDList) || !is_array($arEventPromoBlockIDList)) {
                continue;
            }

            $arElementIDList = $arEventPromoBlockIDList;
            break;
        }

        return $arElementIDList;
    }
protected function getCustomSortingList() : array
    {
        $arEventResult = Event::fire('shopaholic.promo_block.sorting.get.list', [$this->sValue]);
        if (empty($arEventResult)) {
            return [];
        }

        $arElementIDList = [];
        foreach ($arEventResult as $arEventPromoBlockIDList) {
            if (empty($arEventPromoBlockIDList) || !is_array($arEventPromoBlockIDList)) {
                continue;
            }

            $arElementIDList = $arEventPromoBlockIDList;
            break;
        }

        return $arElementIDList;
    }
protected function getCustomSortingList ( ) : array { $ arEventResult = Event :: fire ( 'shopaholic.promo_block.sorting.get.list' , [ $ this -> sValue ] ) ; if ( empty ( $ arEventResult ) ) { return [ ] ; } $ arElementIDList = [ ] ; foreach ( $ arEventResult as $ arEventPromoBlockIDList ) { if ( empty ( $ arEventPromoBlockIDList ) || ! is_array ( $ arEventPromoBlockIDList ) ) { continue ; } $ arElementIDList = $ arEventPromoBlockIDList ; break ; } return $ arElementIDList ; }
Get element list with custom sorting
@return array
Get element list with custom sorting