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
- 10 core/modules/menu_ui/src/Plugin/Validation/Constraint/MenuSettingsConstraint.php \Drupal\menu_ui\Plugin\Validation\Constraint\MenuSettingsConstraint
- 11.x 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.
Plugin annotation
@Constraint(
id = "MenuSettings",
label = @Translation("Menu settings.", context = "Validation"),
)
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 15
Namespace
Drupal\menu_ui\Plugin\Validation\ConstraintView source
class MenuSettingsConstraint extends Constraint {
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 item weight for the <em>published</em> version of this content.';
public $messageParent = 'You can only change the parent menu item for the <em>published</em> version of this content.';
public $messageRemove = 'You can only remove the menu item in the <em>published</em> version of this content.';
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
MenuSettingsConstraint::$message | public | property | |
MenuSettingsConstraint::$messageParent | public | property | |
MenuSettingsConstraint::$messageRemove | public | property | |
MenuSettingsConstraint::$messageWeight | public | property |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.