Problem/Motivation
A limitation of the current implementation is that it relies on form-level validation and so applies only in certain conditions. While issues like #2598864: Validation for overview menu form and #2598866: Validation for node form attempt to mitigate this limitation by adding new form validation, this approach still misses any non-form menu item manipulation or creation, such as via REST.
Proposed resolution
Use the entity validation API, adding a validator to the entity type.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork menu_item_limit-3114458
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3114458-use-entity-validation
changes, plain diff MR !5
Comments
Comment #2
cyberschorschComment #6
cyberschorschComment #8
cyberschorschFixed in new release 2.x