I'm testing drupal 8.3.x and I discovered that any content entity that extends ContentEntityForm needs modifications to be compatible with core.
The exact error is:
Error: Call to a member function getRequestTime() on null a Drupal\Core\Entity\ContentEntityForm->updateChangedTime() line 373
When you try to save a Config page form because Content Entity Forms now use the new datetime.time service.
I did not find a way to make it compatible with both versions of Drupal core and the modules I looked at they all changed their construct() and create() methods to accommodate the changes in core.
So I feel is time for a new version of this module that has compatibility with newer versions of core. 8.x-2.x
Comment | File | Size | Author |
---|---|---|---|
#2 | 2859149-Drupal-8-3-compatibility-2.patch | 2.98 KB | rodrigoaguilera |
Comments
Comment #2
rodrigoaguileraHere is my try at solving the issue. It needs to call the parent class to fill the time service.
Comment #3
GrimreaperHello,
I also encountered the same fatal error testing the module against Core on 8.3.0-rc2, config_pages 8.1.0-rc5 and applying the patch solved the bug.
I did not make any code review.
Thanks @rodrigoaguilera
Comment #4
rodrigoaguileraDrupal 8.30 is around the corner. Can we have this reviewed?
Comment #5
M@ster CreditAttribution: M@ster commentedWorks fine for me, tnx.
Comment #6
rodrigoaguilera@shumer I can help with maintenance of the D8 branch if you are up for it
Comment #8
shumer CreditAttribution: shumer as a volunteer commentedNew branch was added, and new RC released.
Thx for this fix.
Comment #9
shumer CreditAttribution: shumer as a volunteer commented