helpers/Language.php
public static function getCategories()
    {
        $languageSources = \lajax\translatemanager\models\LanguageSource::find()->select('category')->distinct()->all();

        $categories = [];
        foreach ($languageSources as $languageSource) {
            $categories[$languageSource->category] = $languageSource->category;
        }

        return $categories;
    }
public static function getCategories()
    {
        $languageSources = \lajax\translatemanager\models\LanguageSource::find()->select('category')->distinct()->all();

        $categories = [];
        foreach ($languageSources as $languageSource) {
            $categories[$languageSource->category] = $languageSource->category;
        }

        return $categories;
    }
public static function getCategories ( ) { $ languageSources = \ lajax \ translatemanager \ models \ LanguageSource :: find ( ) -> select ( 'category' ) -> distinct ( ) -> all ( ) ; $ categories = [ ] ; foreach ( $ languageSources as $ languageSource ) { $ categories [ $ languageSource -> category ] = $ languageSource -> category ; } return $ categories ; }
Returns the category of LanguageSource in an associative array.

@return array
Returns the category of LanguageSource in an associative array .