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

Breadcrumb

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

function Valid::__construct

Parameters

array<string,mixed>|null $options:

string[]|null $groups:

bool|null $traverse Whether to validate {@see \Traversable} objects (defaults to true):

Overrides Constraint::__construct

File

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

Class

Valid
Validates an object embedded in an object's property.

Namespace

Symfony\Component\Validator\Constraints

Code

public function __construct(?array $options = null, ?array $groups = null, $payload = null, ?bool $traverse = null) {
    parent::__construct($options ?? [], $groups, $payload);
    $this->traverse = $traverse ?? $this->traverse;
}

API Navigation

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