public function loadTagByKeywordAndParentId($keyword, $parentTagId, array $translations = null, $useAlwaysAvailable = true)
    {
        $rows = $this->gateway->getFullTagDataByKeywordAndParentId($keyword, $parentTagId, $translations, $useAlwaysAvailable);
        if (empty($rows)) {
            throw new NotFoundException('tag', $keyword);
        }

        $tag = $this->mapper->extractTagListFromRows($rows);

        return reset($tag);
    }
public function loadTagByKeywordAndParentId($keyword, $parentTagId, array $translations = null, $useAlwaysAvailable = true)
    {
        $rows = $this->gateway->getFullTagDataByKeywordAndParentId($keyword, $parentTagId, $translations, $useAlwaysAvailable);
        if (empty($rows)) {
            throw new NotFoundException('tag', $keyword);
        }

        $tag = $this->mapper->extractTagListFromRows($rows);

        return reset($tag);
    }
public function loadTagByKeywordAndParentId ( $ keyword , $ parentTagId , array $ translations = null , $ useAlwaysAvailable = true ) { $ rows = $ this -> gateway -> getFullTagDataByKeywordAndParentId ( $ keyword , $ parentTagId , $ translations , $ useAlwaysAvailable ) ; if ( empty ( $ rows ) ) { throw new NotFoundException ( 'tag' , $ keyword ) ; } $ tag = $ this -> mapper -> extractTagListFromRows ( $ rows ) ; return reset ( $ tag ) ; }
Loads tags by specified keyword and parent ID.

@param string $keyword The keyword to fetch tag for
@param mixed $parentTagId The parent ID to fetch tag for
@param string[] $translations The languages to load
@param bool $useAlwaysAvailable Check for main language if true (default) and if tag is always available

@throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If the specified tag is not found

@return \Netgen\TagsBundle\API\Repository\Values\Tags\Tag
Loads tags by specified keyword and parent ID .