Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MetadataInterface.php

function MetadataInterface::findConstraints

Returns all constraints for a given validation group.

Parameters

string $group The validation group:

Return value

Constraint[]

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\Mapping

Code

public function findConstraints(string $group) : array;
RSS feed
Powered by Drupal