public function Request::setLocale

Sets the locale.

@api

Parameters

string $locale:

File

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

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function setLocale($locale) {
  $this
    ->setPhpDefaultLocale($this->locale = $locale);
}