public function TranslatorInterface::getLocale

Returns the current locale.

@api

Return value

string The locale

2 methods override TranslatorInterface::getLocale()
DefaultTranslator::getLocale in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/DefaultTranslator.php
Returns the locale of the translator.
DrupalTranslator::getLocale in drupal/core/lib/Drupal/Core/Validation/DrupalTranslator.php
Implements \Symfony\Component\Translation\TranslatorInterface::getLocale().

File

drupal/core/vendor/symfony/translation/Symfony/Component/Translation/TranslatorInterface.php, line 68

Class

TranslatorInterface
TranslatorInterface.

Namespace

Symfony\Component\Translation

Code

public function getLocale();