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

Breadcrumb

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

function IsTrue::__construct

Parameters

array<string,mixed>|null $options:

string[]|null $groups:

Overrides Constraint::__construct

File

vendor/symfony/validator/Constraints/IsTrue.php, line 36

Class

IsTrue
Validates that a value is true.

Namespace

Symfony\Component\Validator\Constraints

Code

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

API Navigation

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