public function getTagNames(Taggable $resource)
    {
        $names = array();

        if (sizeof($resource->getTags()) > 0) {
            foreach ($resource->getTags() as $tag) {
                $names[] = $tag->getName();
            }
        }

        return $names;
    }
public function getTagNames(Taggable $resource)
    {
        $names = array();

        if (sizeof($resource->getTags()) > 0) {
            foreach ($resource->getTags() as $tag) {
                $names[] = $tag->getName();
            }
        }

        return $names;
    }
public function getTagNames ( Taggable $ resource ) { $ names = array ( ) ; if ( sizeof ( $ resource -> getTags ( ) ) > 0 ) { foreach ( $ resource -> getTags ( ) as $ tag ) { $ names [ ] = $ tag -> getName ( ) ; } } return $ names ; }
Returns an array of tag names for the given Taggable resource.

@param Taggable  $resource   Taggable resource
Returns an array of tag names for the given Taggable resource .