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
In \Drupal\Core\Controller\FormController there is a @todo
@todo Make this a trait in PHP 5.4.
Proposed resolution
Either do the @todo or remove the @todo as Drupal 8 has always required > PHP 5.4
Remaining tasks
User interface changes
None
API changes
@todo
Data model changes
None
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | form-controller-trait-3054053-2.patch | 504 bytes | Berdir |
Comments
Comment #2
BerdirI feel like changing this isn't worth it. If we'd do it now we'd probably make it a trait but we don't actually save any code or anything by doing that and there are a bunch of subclasses in contrib, for example ctools and entity_browser.
So I'd vote to just remove the @todo.
Comment #3
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedAgreed :)
Comment #4
alexpottCommitted e19d58f and pushed to 8.8.x. Thanks!
Comment #5
alexpott