public function Request::getLocale

Get the locale.

Return value

string

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php, line 1075

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

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