ConstraintViolationBuilder::setTranslationDomain

public ConstraintViolationBuilder::setTranslationDomain($translationDomain)

Sets the translation domain which should be used for translating the violation message.

Parameters

string $translationDomain The translation domain:

Return value

ConstraintViolationBuilderInterface This builder

Overrides ConstraintViolationBuilderInterface::setTranslationDomain

See also

\Symfony\Component\Translation\TranslatorInterface

File

core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php, line 166

Class

ConstraintViolationBuilder
Defines a constraint violation builder for the Typed Data validator.

Namespace

Drupal\Core\TypedData\Validation

Code

public function setTranslationDomain($translationDomain) 
 {
  $this->translationDomain = $translationDomain;

  return $this;
}
doc_Drupal
2016-10-29 08:56:13
Comments
Leave a Comment

Please login to continue.