Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LocaleAwareInterface.php

function LocaleAwareInterface::setLocale

Sets the current locale.

Return value

void

Throws

\InvalidArgumentException If the locale contains invalid characters

1 method overrides LocaleAwareInterface::setLocale()
AsciiSlugger::setLocale in vendor/symfony/string/Slugger/AsciiSlugger.php
Sets the current locale.

File

vendor/symfony/translation-contracts/LocaleAwareInterface.php, line 23

Class

LocaleAwareInterface

Namespace

Symfony\Contracts\Translation

Code

public function setLocale(string $locale);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal