You are here

public function Constraint::addImplicitGroupName in Plug 7

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

@api

Parameters

string $group:

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

File

lib/Symfony/validator/Symfony/Component/Validator/Constraint.php, line 233

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;
  }
}