TranslatorInterface.php 537 B

12345678910111213141516171819
  1. <?php
  2. namespace Drupal\Core\Validation;
  3. use Symfony\Component\Translation\TranslatorInterface as SymfonyTranslatorInterface;
  4. /**
  5. * Defines an interface used in validation.
  6. *
  7. * This extends the interface used by the Symfony validator in order to indicate
  8. * that the Drupal code is actually independent from the Symfony translation
  9. * component.
  10. *
  11. * @see https://github.com/symfony/symfony/pull/6189
  12. * @see https://github.com/symfony/symfony/issues/15714
  13. */
  14. interface TranslatorInterface extends SymfonyTranslatorInterface {
  15. }