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

Breadcrumb

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

function All::__construct

Parameters

array<Constraint>|array<string,mixed>|null $constraints:

string[]|null $groups:

Overrides Composite::__construct

File

vendor/symfony/validator/Constraints/All.php, line 31

Class

All
When applied to an array (or Traversable object), this constraint allows you to apply a collection of constraints to each element of the array.

Namespace

Symfony\Component\Validator\Constraints

Code

public function __construct(mixed $constraints = null, ?array $groups = null, mixed $payload = null) {
    parent::__construct($constraints ?? [], $groups, $payload);
}

API Navigation

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