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.
In addition to the abstract base class we should have an interface for getFormElement()
See #1952394-116: Add configuration translation user interface module in core
Comment | File | Size | Author |
---|---|---|---|
#4 | formelement.patch | 1.38 KB | Gábor Hojtsy |
#1 | elementinterface.patch | 5.18 KB | Gábor Hojtsy |
Comments
Comment #1
Gábor HojtsyHere it goes. Named it ElementInterface since its the interface that the base class Element also implements :) Now comes with typehints and docs fixes naturally :)
Comment #2
Gábor HojtsyAaaand, committed :) Feel free to reopen with better suggestions :)
Comment #3
tstoecklerIs there a point in keeping this? It seems like it could just be removed.
Comment #4
Gábor HojtsyAbsolutely right. Also the point of the interface is we can typehint that. So fixing the inline type hint as well :)
Comment #5
Gábor HojtsyCommitted / pushed that, thanks!
Comment #6
tstoecklerYay, thanks.