public function DrupalTranslator::setLocale in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Validation/DrupalTranslator.php \Drupal\Core\Validation\DrupalTranslator::setLocale()
- 10 core/lib/Drupal/Core/Validation/DrupalTranslator.php \Drupal\Core\Validation\DrupalTranslator::setLocale()
File
- core/
lib/ Drupal/ Core/ Validation/ DrupalTranslator.php, line 61
Class
- DrupalTranslator
- Translates strings using Drupal's translation system.
Namespace
Drupal\Core\ValidationCode
public function setLocale($locale) {
$this->locale = $locale;
}