Networking\InitCmsBundle\Admin\Model\MediaAdmin::getLocaleChoices PHP Method

getLocaleChoices() protected method

Provide an array of locales where the locale is the key and the label is the value for easy display in a dropdown select for example example: array('de_CH' => 'Deutsch', 'en_GB' => 'English')
protected getLocaleChoices ( ) : array
return array
    protected function getLocaleChoices()
    {
        $locale = array();
        foreach ($this->languages as $language) {
            $locale[$language['locale']] = $language['label'];
        }
        return $locale;
    }