lib/db/behaviors/TagBehavior.php
public function getCurrentTags()
    {
        if (!isset($this->_currentTags)) {
            if (!$this->viaClass) {
                return [];
            }
            $viaClass = $this->viaClass;
            $params = [$this->viaLocalField => $this->owner->primaryKey];
            $rawTags = $viaClass::find()->disableAccessCheck()->where($params)->select($this->viaForeignField)->column();

            $this->_currentTags = [];
            foreach ($rawTags as $tag) {
                $this->_currentTags[$tag] = $tag;
            }
        }

        return $this->_currentTags;
    }
public function getCurrentTags()
    {
        if (!isset($this->_currentTags)) {
            if (!$this->viaClass) {
                return [];
            }
            $viaClass = $this->viaClass;
            $params = [$this->viaLocalField => $this->owner->primaryKey];
            $rawTags = $viaClass::find()->disableAccessCheck()->where($params)->select($this->viaForeignField)->column();

            $this->_currentTags = [];
            foreach ($rawTags as $tag) {
                $this->_currentTags[$tag] = $tag;
            }
        }

        return $this->_currentTags;
    }
public function getCurrentTags ( ) { if ( ! isset ( $ this -> _currentTags ) ) { if ( ! $ this -> viaClass ) { return [ ] ; } $ viaClass = $ this -> viaClass ; $ params = [ $ this -> viaLocalField => $ this -> owner -> primaryKey ] ; $ rawTags = $ viaClass :: find ( ) -> disableAccessCheck ( ) -> where ( $ params ) -> select ( $ this -> viaForeignField ) -> column ( ) ; $ this -> _currentTags = [ ] ; foreach ( $ rawTags as $ tag ) { $ this -> _currentTags [ $ tag ] = $ tag ; } } return $ this -> _currentTags ; }
Get current tags.

@throws \ [[@doctodo exception_description:\]]
@return [[@doctodo return_type:getCurrentTags]] [[@doctodo return_description:getCurrentTags]]
Get current tags .