You are here

public function ConstraintViolationBuilderInterface::setPlural in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Violation/ConstraintViolationBuilderInterface.php \Symfony\Component\Validator\Violation\ConstraintViolationBuilderInterface::setPlural()

Sets the number which determines how the plural form of the violation message is chosen when it is translated.

Parameters

int $number The number for determining the plural form:

Return value

ConstraintViolationBuilderInterface This builder

See also

\Symfony\Component\Translation\TranslatorInterface::transChoice()

3 methods override ConstraintViolationBuilderInterface::setPlural()
ConstraintViolationBuilder::setPlural in vendor/symfony/validator/Violation/ConstraintViolationBuilder.php
Sets the number which determines how the plural form of the violation message is chosen when it is translated.
ConstraintViolationBuilder::setPlural in core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php
Sets the number which determines how the plural form of the violation message is chosen when it is translated.
LegacyConstraintViolationBuilder::setPlural in vendor/symfony/validator/Violation/LegacyConstraintViolationBuilder.php
Sets the number which determines how the plural form of the violation message is chosen when it is translated.

File

vendor/symfony/validator/Violation/ConstraintViolationBuilderInterface.php, line 92

Class

ConstraintViolationBuilderInterface
Builds {@link \Symfony\Component\Validator\ConstraintViolationInterface} objects.

Namespace

Symfony\Component\Validator\Violation

Code

public function setPlural($number);