function MetadataInterface::findConstraints
Returns all constraints for a given validation group.
Parameters
string $group The validation group:
Return value
2 methods override MetadataInterface::findConstraints()
- GenericMetadata::findConstraints in vendor/
symfony/ validator/ Mapping/ GenericMetadata.php - Aware of the global group (* group).
- TypedDataMetadata::findConstraints in core/
lib/ Drupal/ Core/ TypedData/ Validation/ TypedDataMetadata.php - Returns all constraints for a given validation group.
File
-
vendor/
symfony/ validator/ Mapping/ MetadataInterface.php, line 61
Class
- MetadataInterface
- A container for validation metadata.
Namespace
Symfony\Component\Validator\MappingCode
public function findConstraints(string $group) : array;