/** * Return the locale list for checking allowed locales * * Lazy loads one if none set * * @return array */ public function getLocaleList() { if (!$this->localeList) { $this->setLocaleList(LocaleUtils::getList()); } return $this->localeList; }
/** * Return the locale list for checking allowed locales * * Lazy loads one if none set * * @return array */ public function getLocaleList() { if (null === $this->localeList) { $this->setLocaleList(LocaleUtils::getNamedList(Locale::getDefault())); } return $this->localeList; }