public function tagsList($attachment)
    {
        $tagsString = '';
        if (empty($attachment->tags)) {
            return $tagsString;
        }
        $Table = TableRegistry::get($attachment->model);

        foreach ($attachment->tags as $tag) {
            $tagsString .= '<label class="label label-default">' . $Table->getTagCaption($tag) . '</label> ';
        }
        return $tagsString;
    }
public function tagsList($attachment)
    {
        $tagsString = '';
        if (empty($attachment->tags)) {
            return $tagsString;
        }
        $Table = TableRegistry::get($attachment->model);

        foreach ($attachment->tags as $tag) {
            $tagsString .= '<label class="label label-default">' . $Table->getTagCaption($tag) . '</label> ';
        }
        return $tagsString;
    }
public function tagsList ( $ attachment ) { $ tagsString = '' ; if ( empty ( $ attachment -> tags ) ) { return $ tagsString ; } $ Table = TableRegistry :: get ( $ attachment -> model ) ; foreach ( $ attachment -> tags as $ tag ) { $ tagsString .= '<label class="label label-default">' . $ Table -> getTagCaption ( $ tag ) . '</label> ' ; } return $ tagsString ; }
Render a list of tags of given attachment

@param  Attachment\Model\Entity\Attachment $attachment the attachment entity to read the tags from
@return string
Render a list of tags of given attachment