public function DrupalTranslator::trans

Implements \Symfony\Component\Translation\TranslatorInterface::trans().

Overrides TranslatorInterface::trans

File

drupal/core/lib/Drupal/Core/Validation/DrupalTranslator.php, line 30
Contains \Drupal\Core\Validation\DrupalTranslator.

Class

DrupalTranslator
Translates strings using Drupal's translation system.

Namespace

Drupal\Core\Validation

Code

public function trans($id, array $parameters = array(), $domain = NULL, $locale = NULL) {
  return t($id, $this
    ->processParameters($parameters), $this
    ->getOptions($domain, $locale));
}