src/Sulu/Bundle/TagBundle/Tag/TagManager.php
public function resolveTagNames($tagNames)
    {
        $resolvedTags = [];

        foreach ($tagNames as $tagName) {
            $tag = $this->findByName($tagName);
            if (null !== $tag) {
                $resolvedTags[] = $tag->getId();
            }
        }

        return $resolvedTags;
    }
public function resolveTagNames($tagNames)
    {
        $resolvedTags = [];

        foreach ($tagNames as $tagName) {
            $tag = $this->findByName($tagName);
            if (null !== $tag) {
                $resolvedTags[] = $tag->getId();
            }
        }

        return $resolvedTags;
    }
public function resolveTagNames ( $ tagNames ) { $ resolvedTags = [ ] ; foreach ( $ tagNames as $ tagName ) { $ tag = $ this -> findByName ( $ tagName ) ; if ( null !== $ tag ) { $ resolvedTags [ ] = $ tag -> getId ( ) ; } } return $ resolvedTags ; }
Resolves tag names to ids.

@param $tagNames

@return array
Resolves tag names to ids .