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

Breadcrumb

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

function ExpressionSyntax::__construct

Parameters

array<string,mixed>|null $options:

non-empty-string|null $service The service used to validate the constraint instead of the default one:

string[]|null $allowedVariables Restrict the available variables in the expression to these values (defaults to null that allows any variable):

string[]|null $groups:

Overrides Constraint::__construct

File

vendor/symfony/validator/Constraints/ExpressionSyntax.php, line 40

Class

ExpressionSyntax
Validates that a value is valid as an ExpressionLanguage expression.

Namespace

Symfony\Component\Validator\Constraints

Code

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

API Navigation

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