function MenuSettingsConstraint::__construct

Attributes

#[HasNamedArguments]

File

core/modules/menu_ui/src/Plugin/Validation/Constraint/MenuSettingsConstraint.php, line 19

Class

MenuSettingsConstraint
Validation constraint for changing the menu settings in pending revisions.

Namespace

Drupal\menu_ui\Plugin\Validation\Constraint

Code

public function __construct(mixed $options = NULL, public $message = 'You can only change the menu settings for the <em>published</em> version of this content.', public $messageWeight = 'You can only change the menu link weight for the <em>published</em> version of this content.', public $messageParent = 'You can only change the parent menu link for the <em>published</em> version of this content.', public $messageRemove = 'You can only remove the menu link in 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.