src/models/Tag.php
public static function findRelationsTable($tableName)
    {
        return self::find()
            ->innerJoin(TagRelation::tableName(), '{{%admin_tag_relation}}.tag_id={{%admin_tag}}.id')
            ->where(['table_name' => TaggableTrait::cleanBaseTableName($tableName)])
            ->indexBy('name')
            ->distinct()
            ->all();
    }
public static function findRelationsTable($tableName)
    {
        return self::find()
            ->innerJoin(TagRelation::tableName(), '{{%admin_tag_relation}}.tag_id={{%admin_tag}}.id')
            ->where(['table_name' => TaggableTrait::cleanBaseTableName($tableName)])
            ->indexBy('name')
            ->distinct()
            ->all();
    }
public static function findRelationsTable ( $ tableName ) { return self :: find ( ) -> innerJoin ( TagRelation :: tableName ( ) , '{{%admin_tag_relation}}.tag_id={{%admin_tag}}.id' ) -> where ( [ 'table_name' => TaggableTrait :: cleanBaseTableName ( $ tableName ) ] ) -> indexBy ( 'name' ) -> distinct ( ) -> all ( ) ; }
Get all assigned tags for table name.

@param string $tableName
@return \yii\db\ActiveRecord
Get all assigned tags for table name .