function PathAliasConstraint::__construct

Attributes

#[HasNamedArguments]

File

core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraint.php, line 19

Class

PathAliasConstraint
Validation constraint for changing path aliases in pending revisions.

Namespace

Drupal\path\Plugin\Validation\Constraint

Code

public function __construct(mixed $options = NULL, public $message = 'You can only change the URL alias for the <em>published</em> version of this content.', ?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.