/** * {@inheritdoc} */ public function getAvailableLocales() { if (!$this->loaded) { $this->locales = $this->repository->getAvailableLocales(); $this->loaded = true; } return $this->locales; }
/** * {@inheritdoc} */ public function getGlobals() { return ['locales' => $this->repository->getAvailableLocales()]; }