You are here

public function Composite::addImplicitGroupName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Constraints/Composite.php \Symfony\Component\Validator\Constraints\Composite::addImplicitGroupName()

Implicit group names are forwarded to nested constraints.

Parameters

string $group:

Overrides Constraint::addImplicitGroupName

File

vendor/symfony/validator/Constraints/Composite.php, line 123

Class

Composite
A constraint that is composed of other constraints.

Namespace

Symfony\Component\Validator\Constraints

Code

public function addImplicitGroupName($group) {
  parent::addImplicitGroupName($group);

  /** @var Constraint[] $nestedConstraints */
  $nestedConstraints = $this->{$this
    ->getCompositeOption()};
  foreach ($nestedConstraints as $constraint) {
    $constraint
      ->addImplicitGroupName($group);
  }
}