src/models/TagRelation.php
public static function getDistinctDataForTable($tableName)
    {
        return self::find()->select('tag_id')->where(['table_name' => $tableName])->distinct()->asArray()->all();
    }
public static function getDistinctDataForTable($tableName)
    {
        return self::find()->select('tag_id')->where(['table_name' => $tableName])->distinct()->asArray()->all();
    }
public static function getDistinctDataForTable ( $ tableName ) { return self :: find ( ) -> select ( 'tag_id' ) -> where ( [ 'table_name' => $ tableName ] ) -> distinct ( ) -> asArray ( ) -> all ( ) ; }
Get an array with all entries for a table name.

This methods i mainly used internal to retrieve data for the Active Window. Use the {{luya\admin\traits\TagsTrait}} in your Model instead.

@param string $tableName The table name.
@return array|ActiveRecord[]
Get an array with all entries for a table name .