Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The following all allow the ::Callback shorthand:
- #ajax][callback
- #process
- #after_build
- #validate
- #submit
#entity_builders
should as well.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | 2821265-entity_builder-2.patch | 3.22 KB | tim.plunkett |
Comments
Comment #2
tim.plunkettComment #3
dawehnerWFM. We have implicit test coverage, I'm just wondering whether we need explicit ones for that. Today I'm totally on the meh side of things.
Comment #4
alexpottToday I'm totally on the meh side of things too. Do the other examples in the issue summary have explicit tests? Or are we okay with the implicit coverage here?
Comment #5
tim.plunkettNo they do not, only the method itself is tested in
added in #2309323: Allow #submit and #validate to be specified as methods of the form object
Comment #6
alexpottI've thought about asking for a CR here but existing code does not need to change so there is nothing to do. No backporting this to 8.2.x means that contrib can only safely use this once 8.4.x is out so a CR now it pointless.
Committed c3cad9b and pushed to 8.3.x. Thanks!