plugin/blog/Manager/TagManager.php
public function loadOrCreateTags($tagNames)
    {
        $tagNames = (is_array($tagNames)) ? $tagNames : $this->parseTagString($tagNames);

        $tags = [];
        foreach ($tagNames as $name) {
            if ($name) {
                $tags[] = $this->loadOrCreateTag($name);
            }
        }

        return $tags;
    }
public function loadOrCreateTags($tagNames)
    {
        $tagNames = (is_array($tagNames)) ? $tagNames : $this->parseTagString($tagNames);

        $tags = [];
        foreach ($tagNames as $name) {
            if ($name) {
                $tags[] = $this->loadOrCreateTag($name);
            }
        }

        return $tags;
    }
public function loadOrCreateTags ( $ tagNames ) { $ tagNames = ( is_array ( $ tagNames ) ) ? $ tagNames : $ this -> parseTagString ( $ tagNames ) ; $ tags = [ ] ; foreach ( $ tagNames as $ name ) { if ( $ name ) { $ tags [ ] = $ this -> loadOrCreateTag ( $ name ) ; } } return $ tags ; }
Load or Create tag following to a given string or list of names.

@param string or array $tagNames

@return array tags
Load or Create tag following to a given string or list of names .