Problem/Motivation
Although handy entity_load*() has been deprecated and is still used in core quite a bit. This issue only pertains to the block_content entity type.
Proposed resolution
Use instructions in the parent issue: #2359437: [meta] Remove entity_load* family of functions usage from the code base
Remaining tasks
Review and commit.
User interface changes
none
API changes
none
Data model changes
none
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | 2549789-13.patch | 2.08 KB | jofitz |
| #13 | interdiff-11-13.txt | 1.5 KB | jofitz |
| #11 | 2549789-11.patch | 2.14 KB | googletorp |
| #7 | 2549789-7.patch | 2.01 KB | rajeshwari10 |
| block_content_deprecated.patch | 2.62 KB | Jaesin |
Comments
Comment #2
borisson_This function is only deprecated for 9.0.x, so it can still be used in 8.x.x, so I think this issue can be closed. At the very least it needs a beta phase evaluation template.
Comment #3
Jaesin commentedProbably better to postpone to 9.0.x rather than close but it brings up the question of weather these entity functions were marked deprecated a little early if we are not ready to start fixing them yet.
The way some IDE's display deprecated functions (talking about you PHPStorm ;P) is a little alarming when working on these classes.
Comment #5
mile23Some usages of
entity_load_multiple*for theblock_contenttype remain.Added parent #2359437: [meta] Remove entity_load* family of functions usage from the code base which is where we've handled all the others like this. See the instruction there for how to proceed.
Comment #6
rajeshwari10 commentedComment #7
rajeshwari10 commentedDone changes on Drupal 8.3.x
Please Review.
Thanks.
Comment #10
mile23Patch no longer applies.
Comment #11
googletorp commentedHere is a reroll of the patch from #7.
Comment #13
jofitzCorrect errors in tests re-roll.
Comment #14
googletorp commentedI don't see any usage of entity_load* in block module when patch is applied. All tests are green, code looks good.
I think this is RTBC.
Comment #17
larowlanCommitted a322311 and pushed to 8.5.x.