Return an array of all of the tags that are in use by this model

@return Collection
764605
public static function existingTags()
	{
		$tags_table_name = config('taggable.tags_table_name');

		return Tagged::distinct()
			->join($tags_table_name, 'tag_id', '=', $tags_table_name.'.id')
			->where('taggable_type', '=', (new static)->getMorphClass())
			->orderBy('tag_id', 'ASC')
			->get(array($tags_table_name.'.slug as slug', $tags_table_name.'.name as name', $tags_table_name.'.count as count'));
	}
877366
public function findTags()
    {
        $tags = [];
        foreach ($this->getDefinitions() as $id => $definition) {
            $tags = array_merge(array_keys($definition->getTags()), $tags);
        }

        return array_unique($tags);
    }
150607
def tags(self):
		'''

		'''
		q = meta.Session.query(_tag.Tag)
		q = q.join(TagSemanticTag)
		q = q.filter_by(tag_id=self.id)
#		q = q.filter_by(state='active')
		q = q.order_by(_tag.Tag.name)
		tags = q.all()
		return tags
1016811
private function getTagTokens(): array
    {
        if ($this->loadedTagTokens === null) {
            $this->loadedTagTokens = $this->loadTagTokens();
        }

        return $this->loadedTagTokens;
    }
284515
public function getDefinedMethods() : Collection
    {
        return collect($this->getMethods())
            ->filter(function ($method) {
                return $method->getFileName() == $this->getFileName();
            });
    }
629730
public function index()
    {
        return collect($this->tags->monitoring())->map(function ($tag) {
            return [
                'tag' => $tag,
                'count' => $this->tags->count($tag) + $this->tags->count('failed:'.$tag),
            ];
        })->sortBy('tag')->values();
    }
805663
public function all()
    {
        $key = $this->getKey();

        $tags = $this->getTags();

        if ($this->cache->has($key, $tags)) {
            return $this->cache->get($key, $tags);
        }

        $collection = $this->repo->all();

        $this->cache->put($key, $collection, $tags);

        return $collection;
    }
882327
static public function fetchLimitations()
    {
        /** @var eZTagsObject[] $tags */
        $tags = self::fetchList( array( 'parent_id' => 0, 'main_tag_id' => 0 ), null, null, true );

        if ( !is_array( $tags ) )
            return array();

        $returnArray = array();
        foreach ( $tags as $tag )
        {
            $returnArray[] = array( 'name' => $tag->attribute( 'keyword' ), 'id' => $tag->attribute( 'id' ) );
        }

        return $returnArray;
    }
1053787
public function getTagList(){
	    if (!$this->access_token && !$this->checkAuth()) return false;
	    $result = $this->http_get(self::API_URL_PREFIX.self::TAG_LIST_URL.'access_token='.$this->access_token);
	    if ($result)
	    {
	        $json = json_decode($result,true);
	        if (!$json || !empty($json['errcode'])) {
	            $this->errCode = $json['errcode'];
	            $this->errMsg = $json['errmsg'];
	            return false;
	        }
	        return $json;
	    }
	    return false;
	}
788583
public function getPhotoTags() {
		$tags = [];
		$annotations = elgg_get_annotations([
			'guid' => $this->getGUID(),
			'annotation_name' => 'phototag',
		]);
		foreach ($annotations as $annotation) {
			$tag = unserialize($annotation->value);
			$tag->annotation_id = $annotation->id;
			$tags[] = $tag;
		}

		return $tags;
	}
711573
public function getTags()
    {
        return \is_string($value = $this->getContentValue('tags', null))
            ? array_unique(array_filter(explode(',', $value)))
            : null;
    }
821171
public function getTagFilters()
    {
        if ($this->tagFilters === ['none']) {
            $result = null;
        } elseif ($this->tagFilters === ['all']) {
            $result = [];
        } else {
            $result = $this->tagFilters;
        }

        return $result;
    }
544357
private function getAllTags()
    {
        if ($comment = $this->getDocComment()) {
            if (preg_match_all("/\@(\w+)(.*)/", $comment, $m)) {
                foreach ($m[0] as $i => $result) {
                    $tagName = $m[1][$i];
                    $tagValue = trim($m[2][$i]);
                    $this->setTag($tagName, $tagValue);
                }
            }
        }
    }
801519
public function getTags()
    {
        $tags = [];
        $this->caller->execute(TagCommand::getInstance($this)->listTags());
        foreach ($this->caller->getOutputLines() as $tagString) {
            if ($tagString != '') {
                $tags[] = new Tag($this, trim($tagString));
            }
        }

        return $tags;
    }
191012
public function getTags()
    {
        if (!is_array($this->aTags) && $this->id) {
            $this->aTags = [];
            foreach (Sked::getEventTags($this->id) as $aEventTag)
                $this->aTags[$aEventTag['tag_id']] = new SkeVentTag($aEventTag);
        }
        return $this->aTags;
    }
476623
public function getRequestItems()
    {
        $items = [];
        foreach ($this->items as $key => $value) {
            $items[] = [
                'Tag' => $key,
                'Value' => $value
            ];
        }
        return $items;
    }
1092562
public function tags()
    {
        if (null === $this->tags) {
            $retval = $this->execute('ls-remote', array('--tags' => true, $this->getUrl()));

            if ('' === trim($retval)) {
                return $this->tags = array();
            }

            $list = explode("\n", rtrim($retval));

            $tags = array();
            foreach ($list as $line) {
                list ($hash, $ref) = explode("\t", $line);
                $tags[] = new Reference(str_replace('refs/tags/', '', $ref), Reference::TAG, $hash);
            }

            $this->tags = $tags;
        }

        return $this->tags;
    }