Defines an interface used in validation.
This extends the interface used by the Symfony validator in order to indicate that the Drupal code is actually independent from the Symfony translation component.
Hierarchy
- interface \Symfony\Component\Translation\TranslatorInterface
- interface \Drupal\Core\Validation\TranslatorInterface
See also
https://github.com/symfony/symfony/pull/6189
https://github.com/symfony/symfony/issues/15714
File
- core/lib/Drupal/Core/Validation/TranslatorInterface.php, line 17
Namespace
Drupal\Core\Validation
Members
Name | Modifiers | Type | Description |
---|---|---|---|
TranslatorInterface::getLocale | public | function | Returns the current locale. |
TranslatorInterface::setLocale | public | function | Sets the current locale. |
TranslatorInterface::trans | public | function | Translates the given message. |
TranslatorInterface::transChoice | public | function | Translates the given choice message by choosing a translation according to a number. |
Please login to continue.