public function getTagKeyword($tag)
    {
        if (!$tag instanceof Tag) {
            try {
                $tag = $this->tagsService->loadTag($tag);
            } catch (NotFoundException $e) {
                return '';
            }
        }

        return $this->translationHelper->getTranslatedByMethod($tag, 'getKeyword');
    }
public function getTagKeyword($tag)
    {
        if (!$tag instanceof Tag) {
            try {
                $tag = $this->tagsService->loadTag($tag);
            } catch (NotFoundException $e) {
                return '';
            }
        }

        return $this->translationHelper->getTranslatedByMethod($tag, 'getKeyword');
    }
public function getTagKeyword ( $ tag ) { if ( ! $ tag instanceof Tag ) { try { $ tag = $ this -> tagsService -> loadTag ( $ tag ) ; } catch ( NotFoundException $ e ) { return '' ; } } return $ this -> translationHelper -> getTranslatedByMethod ( $ tag , 'getKeyword' ) ; }
Returns tag keyword for provided tag ID or tag object.

@param mixed|\Netgen\TagsBundle\API\Repository\Values\Tags\Tag $tag

@return string
Returns tag keyword for provided tag ID or tag object .