public function ElementMetadata::findConstraints

Returns the constraints of the given group and global ones (* group).

Parameters

string $group The group name:

Return value

array An array with all Constraint instances belonging to the group

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Mapping/ElementMetadata.php, line 101

Class

ElementMetadata

Namespace

Symfony\Component\Validator\Mapping

Code

public function findConstraints($group) {
  return isset($this->constraintsByGroup[$group]) ? $this->constraintsByGroup[$group] : array();
}