Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ValidatorBuilder.php

function ValidatorBuilder::setTranslationDomain

Sets the default translation domain of violation messages.

The same message can have different translations in different domains. Pass the domain that is used for violation messages by default to this method.

Return value

$this

File

vendor/symfony/validator/ValidatorBuilder.php, line 288

Class

ValidatorBuilder
@author Bernhard Schussek <bschussek@gmail.com>

Namespace

Symfony\Component\Validator

Code

public function setTranslationDomain(?string $translationDomain) : static {
    $this->translationDomain = $translationDomain;
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal