/** * {@inheritdoc} */ public function getLocale() { if ($this->locale === NULL) { $this->setLocale($this->localeResolver->resolve($this)); } return $this->locale; }