src/CRUDlex/Service.php
protected function getLocaleLabels(array $crud)
    {
        $locales      = $this->getLocales();
        $localeLabels = [];
        foreach ($locales as $locale) {
            if (array_key_exists('label_'.$locale, $crud)) {
                $localeLabels[$locale] = $crud['label_'.$locale];
            }
        }
        return $localeLabels;
    }
protected function getLocaleLabels(array $crud)
    {
        $locales      = $this->getLocales();
        $localeLabels = [];
        foreach ($locales as $locale) {
            if (array_key_exists('label_'.$locale, $crud)) {
                $localeLabels[$locale] = $crud['label_'.$locale];
            }
        }
        return $localeLabels;
    }
protected function getLocaleLabels ( array $ crud ) { $ locales = $ this -> getLocales ( ) ; $ localeLabels = [ ] ; foreach ( $ locales as $ locale ) { if ( array_key_exists ( 'label_' . $ locale , $ crud ) ) { $ localeLabels [ $ locale ] = $ crud [ 'label_' . $ locale ] ; } } return $ localeLabels ; }
Gets a map with localized entity labels from the CRUD YML.

@param array $crud
the CRUD entity map

@return array
the map with localized entity labels
Gets a map with localized entity labels from the CRUD YML .