Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Parent Issue
#2359437: [meta] Remove entity_load* family of functions usage from the code base
Problem/Motivation
There are case where entities of the view entity type are retrieved using the functional loader, entity_load()
Proposed resolution
Replace calls to entity_load('view', ...)
with View::load()
Comment | File | Size | Author |
---|---|---|---|
#6 | drupal-remove_entity_load_usage_for_view-2723585-2.patch | 10.59 KB | danielmrichards |
#3 | drupal-remove_entity_load_usage_for_view-2723585-1.patch.patch | 10.61 KB | danielmrichards |
Comments
Comment #2
danielmrichards CreditAttribution: danielmrichards as a volunteer commentedI'll take a look at this as part of the DrupalCon NOLA sprints
Comment #3
danielmrichards CreditAttribution: danielmrichards as a volunteer commentedComment #4
danielmrichards CreditAttribution: danielmrichards as a volunteer commentedComment #6
danielmrichards CreditAttribution: danielmrichards as a volunteer commentedFixing failing test
Comment #7
danielmrichards CreditAttribution: danielmrichards as a volunteer commentedComment #8
valthebaldAfter applying the patch from #6, there are no more occurences of entity_load.*\('view'
Comment #9
John Cook CreditAttribution: John Cook commentedUpdated the summary to help submitters.
Comment #10
alexpottCommitted ac4b5c7 and pushed to 8.2.x. Thanks!