public function getAttachmentsTags($list = true)
    {
        $tags = $this->config('tags');

        if (!$list) {
            return $tags;
        }

        $tagsList = [];
        foreach ($tags as $key => $tag) {
            $tagsList[$key] = $tag['caption'];
        }

        return $tagsList;
    }
public function getAttachmentsTags($list = true)
    {
        $tags = $this->config('tags');

        if (!$list) {
            return $tags;
        }

        $tagsList = [];
        foreach ($tags as $key => $tag) {
            $tagsList[$key] = $tag['caption'];
        }

        return $tagsList;
    }
public function getAttachmentsTags ( $ list = true ) { $ tags = $ this -> config ( 'tags' ) ; if ( ! $ list ) { return $ tags ; } $ tagsList = [ ] ; foreach ( $ tags as $ key => $ tag ) { $ tagsList [ $ key ] = $ tag [ 'caption' ] ; } return $ tagsList ; }
get the configured tags

@param  bool   $list if it should return a list for selects or the whole array
@return array
get the configured tags