Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Adding the interface for the entity class will allow other projects to use that to write more extensible OOP.
Patch attached.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2420551_entity_2.patch | 10.92 KB | e0ipso |
Comments
Comment #1
e0ipsoComment #2
e0ipsoSorry, the
wrapper()
method was missing in the interface.New patch.
Comment #3
plopescThis request sounds very useful.
In https://github.com/Plug-Drupal/plug_config and some other projects we are extracting manually this interface to use it. Would be great if you could provide it in entity module out of the box.
Thank you
Comment #4
David Hernández CreditAttribution: David Hernández commented+1
I'm working with custom Entities and this will be really helpful.
Comment #5
Saphyel CreditAttribution: Saphyel commentedThanks e0ipso! I need this feature for one of my project!
Comment #6
fagoThanks, improved the interface docs slightly and committed it.