You are here

public function Request::getLocale in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request::getLocale()

Get the locale.

Return value

string

File

vendor/symfony/http-foundation/Request.php, line 1440

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function getLocale() {
  return null === $this->locale ? $this->defaultLocale : $this->locale;
}