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

Breadcrumb

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

function GenericMetadata::findConstraints

Aware of the global group (* group).

Return value

Constraint[]

Overrides MetadataInterface::findConstraints

File

vendor/symfony/validator/Mapping/GenericMetadata.php, line 204

Class

GenericMetadata
A generic container of {@link Constraint} objects.

Namespace

Symfony\Component\Validator\Mapping

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal