You are here

public function Constraint::addImplicitGroupName in Zircon Profile 8

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

Adds the given group if this constraint is in the Default group.

Parameters

string $group:

1 call to Constraint::addImplicitGroupName()
Composite::addImplicitGroupName in vendor/symfony/validator/Constraints/Composite.php
Implicit group names are forwarded to nested constraints.
1 method overrides Constraint::addImplicitGroupName()
Composite::addImplicitGroupName in vendor/symfony/validator/Constraints/Composite.php
Implicit group names are forwarded to nested constraints.

File

vendor/symfony/validator/Constraint.php, line 229

Class

Constraint
Contains the properties of a constraint definition.

Namespace

Symfony\Component\Validator

Code

public function addImplicitGroupName($group) {
  if (in_array(self::DEFAULT_GROUP, $this->groups) && !in_array($group, $this->groups)) {
    $this->groups[] = $group;
  }
}