It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.
See #2359437: [meta] Remove entity_load* family of functions usage from the code base
valthebald created an issue. See original summary.
Working on this at DC New Orleans sprint.
Patch Attached. Removed references to entity_load and replaced them.
changed status
The last submitted patch, 3: remove_entity_load_block-2723583-3.patch, failed testing.
entity_load_multiple_by_properties('block', ...)
should be replaced with
\Drupal::entityTypeManager()->getStorage('block')->loadByProperties(...)
Re-rolled to add namespace and included changing references in the block_content module.
The last submitted patch, 7: remove_entity_load_block-2723583-6.patch, failed testing.
@mchampee: please check my comment #6
here you go...
Let's test that
The patch in #10 applies. My IDE says it successfully changes all occurrences of entity_load*'block'. The patch stays in scope and looks right.
Therefore woot, RTBC.
The last submitted patch, 10: remove_entity_load_block-2723583-10.patch, failed testing.
Committed 9aa63fd and pushed to 8.2.x. Thanks!
Issue #2723583 by mchampsee, valthebald: Remove entity_load* usage for...
Automatically closed - issue fixed for 2 weeks with no activity.
Comments
Comment #2
mchampsee CreditAttribution: mchampsee at Champsee Solutions, LLC for UCSF Center for HIV Information commentedWorking on this at DC New Orleans sprint.
Comment #3
mchampsee CreditAttribution: mchampsee at Champsee Solutions, LLC commentedPatch Attached. Removed references to entity_load and replaced them.
Comment #4
mchampsee CreditAttribution: mchampsee at Champsee Solutions, LLC commentedchanged status
Comment #6
valthebaldshould be replaced with
Comment #7
mchampsee CreditAttribution: mchampsee at Champsee Solutions, LLC commentedRe-rolled to add namespace and included changing references in the block_content module.
Comment #9
valthebald@mchampee: please check my comment #6
Comment #10
mchampsee CreditAttribution: mchampsee at Champsee Solutions, LLC commentedhere you go...
Comment #11
valthebaldLet's test that
Comment #12
Mile23The patch in #10 applies. My IDE says it successfully changes all occurrences of entity_load*'block'. The patch stays in scope and looks right.
Therefore woot, RTBC.
Comment #15
marvin_B8 CreditAttribution: marvin_B8 as a volunteer and at comm-press commentedComment #16
catchCommitted 9aa63fd and pushed to 8.2.x. Thanks!