Closed (fixed)
Project:
Drupal core
Version:
8.8.x-dev
Component:
entity system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2019 at 19:38 UTC
Updated:
12 Oct 2019 at 13:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
berdirStill another 100kb, though. As before, in a few places I updated all uses of entityManager, almost no constructor changes this time though. A bunch of migrate classes (including unit test updates) and pseudo-injection in Tables.php as well as the usage in ModuleInstaller.
Comment #3
berdirBunch of unused use statements fixed.
Comment #4
berdirthis one needs the NULL treatment, forgot about it.
Comment #7
andypostlooking on replaced usage in field tests I think it makes sense to provide protected EFM property to not abuse container and \Drupal instead of now "mostly unused"
$this->entityTypeManagerpropertyneeds \
could use local var
makes sense to move local var out of loop
is there a way to inject it?
probably private visibility better?
makes sense to use local var and move out of loop
looks local var makes sense here as well
Comment #8
vacho commentedPatch rerolled. Solving merge problems. File FileFieldWidgetTest.php move to new path in 8.7.x
Comment #10
berdiranother reroll.
This is still technically postponed on #3035383: Replace deprecated usages of entityManager in list builder classes, just checking how much is left other than that.
Comment #12
berdirComment #13
berdirOk, the blocker is in, rerolled, lets see what I missed.
Comment #15
berdirFixing a few more cases and updating some kernel and unit tests.
Comment #16
andypostIt has collision with #2897015: EntityManager class/method @deprecation is incomplete but is more complete, as I checked few references in `@see` needs updates
Comment #17
andypostFixes
Comment #18
berdirPostponing on #2554235: Make the content entity storage and entity query use the last installed definitions instead of the ones living in code
Comment #19
berdirReroll. Also finally addressing the review from #7.
1. Done
2. Done
3. Done
4. There would be ways, sure, but it is a test trait, so no reason to.
5. private in traits isn't really private: https://3v4l.org/O2aPl, so it wouldn't really be private anyway and making it protected makes conceptually more senes to me, as it would allow a class to inject the service.
6. Done.
7. Done.
Comment #20
andypostLooks polished
Comment #21
berdirRerolled, only conflict was this, so leaving at RTBC. Actually conflicted with #2908271: Replace deprecated \Drupal::entityManager() in EntityReferenceItem.
Comment #22
larowlannit: this isn't really true
Comment #23
berdirUpdated that too.
Comment #24
berdirReroll, also injected the entity field manager into the node wizard plugin like the entity get display issue did.
Comment #25
larowlanCommitted a98b587 and pushed to 8.8.x. Thanks!
Comment #28
jidrone commentedHi everyone,
Do you know why this is causing the following error on custom entity types extending EntityViewsData:
PHP Fatal error: Uncaught Error: Call to a member function getBaseFieldDefinitions() on null in /app/webroot/core/modules/views/src/EntityViewsData.php:287Looks like the entity_field.manager service in not injected for the custom entity type.
Comment #29
kristiaanvandeneyndeShould be fixed by #3081176: \Drupal\views\EntityViewsData is missing constructor BC for entity field manager