src/Sulu/Component/Content/Metadata/ItemMetadata.php
public function getTag($tagName)
    {
        foreach ($this->tags as $tag) {
            if ($tag['name'] === $tagName) {
                return $tag;
            }
        }

        throw new \InvalidArgumentException(sprintf(
            'Unknown tag "%s"', $tagName
        ));
    }
public function getTag($tagName)
    {
        foreach ($this->tags as $tag) {
            if ($tag['name'] === $tagName) {
                return $tag;
            }
        }

        throw new \InvalidArgumentException(sprintf(
            'Unknown tag "%s"', $tagName
        ));
    }
public function getTag ( $ tagName ) { foreach ( $ this -> tags as $ tag ) { if ( $ tag [ 'name' ] === $ tagName ) { return $ tag ; } } throw new \ InvalidArgumentException ( sprintf ( 'Unknown tag "%s"' , $ tagName ) ) ; }
Return the named tag.

@param string $tagName

@throws \InvalidArgumentException

@return array
Return the named tag .