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

Breadcrumb

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

function Blank::__construct

Parameters

array<string,mixed>|null $options:

string[]|null $groups:

Overrides Constraint::__construct

File

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

Class

Blank
Validates that a value is blank, i.e. an empty string or null.

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;
}
RSS feed
Powered by Drupal