public function getByTagID($iTagID)
    {
        //Get tag element
        if (!PluginManager::instance()->hasPlugin('Lovata.TagsShopaholic') || empty($iTagID)) {
            return $this->arResult;
        }

        $obTagItem = \Lovata\TagsShopaholic\Classes\Item\TagItem::make($iTagID);
        if ($obTagItem->isEmpty()) {
            return $this->arResult;
        }

        $arTagData = $obTagItem->toArray();
        $arTagData['active'] = true;
        $arTagData['item'] = $obTagItem;

        $this->arResult[] = $arTagData;

        //Get category data
        $this->addCategoryData($obTagItem->category_id);
        $this->arResult = array_reverse($this->arResult);

        return $this->arResult;
    }
public function getByTagID($iTagID)
    {
        //Get tag element
        if (!PluginManager::instance()->hasPlugin('Lovata.TagsShopaholic') || empty($iTagID)) {
            return $this->arResult;
        }

        $obTagItem = \Lovata\TagsShopaholic\Classes\Item\TagItem::make($iTagID);
        if ($obTagItem->isEmpty()) {
            return $this->arResult;
        }

        $arTagData = $obTagItem->toArray();
        $arTagData['active'] = true;
        $arTagData['item'] = $obTagItem;

        $this->arResult[] = $arTagData;

        //Get category data
        $this->addCategoryData($obTagItem->category_id);
        $this->arResult = array_reverse($this->arResult);

        return $this->arResult;
    }
public function getByTagID ( $ iTagID ) { //Get tag element if ( ! PluginManager :: instance ( ) -> hasPlugin ( 'Lovata.TagsShopaholic' ) || empty ( $ iTagID ) ) { return $ this -> arResult ; } $ obTagItem = \ Lovata \ TagsShopaholic \ Classes \ Item \ TagItem :: make ( $ iTagID ) ; if ( $ obTagItem -> isEmpty ( ) ) { return $ this -> arResult ; } $ arTagData = $ obTagItem -> toArray ( ) ; $ arTagData [ 'active' ] = true ; $ arTagData [ 'item' ] = $ obTagItem ; $ this -> arResult [ ] = $ arTagData ; //Get category data $ this -> addCategoryData ( $ obTagItem -> category_id ) ; $ this -> arResult = array_reverse ( $ this -> arResult ) ; return $ this -> arResult ; }
Get breadcrumbs for tag page by tag ID
@param int $iTagID
@return array
Get breadcrumbs for tag page by tag ID