creocoder\taggable\TaggableBehavior::hasTagValues PHP Method

hasTagValues() public method

Returns a value indicating whether tags exists.
public hasTagValues ( string | string[] $values ) : boolean
$values string | string[]
return boolean
    public function hasTagValues($values)
    {
        $tagValues = $this->getTagValues(true);
        foreach ($this->filterTagValues($values) as $value) {
            if (!in_array($value, $tagValues)) {
                return false;
            }
        }
        return true;
    }