class MenuSettingsConstraint
Same name in other branches
- 9 core/modules/menu_ui/src/Plugin/Validation/Constraint/MenuSettingsConstraint.php \Drupal\menu_ui\Plugin\Validation\Constraint\MenuSettingsConstraint
- 8.9.x core/modules/menu_ui/src/Plugin/Validation/Constraint/MenuSettingsConstraint.php \Drupal\menu_ui\Plugin\Validation\Constraint\MenuSettingsConstraint
- 10 core/modules/menu_ui/src/Plugin/Validation/Constraint/MenuSettingsConstraint.php \Drupal\menu_ui\Plugin\Validation\Constraint\MenuSettingsConstraint
Validation constraint for changing the menu settings in pending revisions.
Hierarchy
- class \Drupal\menu_ui\Plugin\Validation\Constraint\MenuSettingsConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of MenuSettingsConstraint
File
-
core/
modules/ menu_ui/ src/ Plugin/ Validation/ Constraint/ MenuSettingsConstraint.php, line 12
Namespace
Drupal\menu_ui\Plugin\Validation\ConstraintView source
class MenuSettingsConstraint extends SymfonyConstraint {
/**
* The default violation message.
*/
public $message = 'You can only change the menu settings for the <em>published</em> version of this content.';
/**
* The violation message when the weight cannot be changed.
*/
public $messageWeight = 'You can only change the menu link weight for the <em>published</em> version of this content.';
/**
* The violation message when changing the parent for a unpublished content.
*/
public $messageParent = 'You can only change the parent menu link for the <em>published</em> version of this content.';
/**
* The violation message when removing a menu link for unpublished content.
*/
public $messageRemove = 'You can only remove the menu link in the <em>published</em> version of this content.';
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
MenuSettingsConstraint::$message | public | property | The default violation message. |
MenuSettingsConstraint::$messageParent | public | property | The violation message when changing the parent for a unpublished content. |
MenuSettingsConstraint::$messageRemove | public | property | The violation message when removing a menu link for unpublished content. |
MenuSettingsConstraint::$messageWeight | public | property | The violation message when the weight cannot be changed. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.