function MediaTestConstraint::__construct

Attributes

#[HasNamedArguments]

File

core/modules/media/tests/modules/media_test_source/src/Plugin/Validation/Constraint/MediaTestConstraint.php, line 22

Class

MediaTestConstraint
A media test constraint.

Namespace

Drupal\media_test_source\Plugin\Validation\Constraint

Code

public function __construct(mixed $options = NULL, public $message = 'Inappropriate text.', ?array $groups = NULL, mixed $payload = NULL) {
  parent::__construct($options, $groups, $payload);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.