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 cases where entities of the entity_form_display entity type are retrieved using the functional loader, entity_load()
Proposed resolution
Replace calls to entity_load('entity_form_display', ...)
with EntityFormDisplay::load*()
Comment | File | Size | Author |
---|---|---|---|
#4 | drupal-remove_entity_load_usage_for_entity_form_display-2723571-1.patch | 5.66 KB | danielmrichards |
Comments
Comment #2
danielmrichards CreditAttribution: danielmrichards 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 #5
danielmrichards CreditAttribution: danielmrichards as a volunteer commentedComment #6
Mile23The patch in #4 applies. My IDE says there's no occurrences of entity_load*'entity_form_display' after applying it. Also it looks like it's within scope and therefore all is well.
Comment #7
John Cook CreditAttribution: John Cook commentedUpdated summary.
Comment #9
catchCommitted 0d9fa5c and pushed to 8.2.x. Thanks!