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.
The entity_view
function has been deprecated for some time now and only used in a couple of places. Let's go the home stretch, remove the final usages from core and trigger a deprecation warning when the method is called by implementing modules.
Comment | File | Size | Author |
---|---|---|---|
#12 | 2974258-12.patch | 10.09 KB | legolasbo |
Comments
Comment #2
legolasboComment #4
legolasboI think testbot is broken because
doesn't seem to have anything to do with my patch and I've seen the exact same message show up on other patches. I did however fix the coding standards issue that was reported.
Comment #6
legolasboBack to needs review while retesting #4 now testbot is no longer broken.
Comment #8
joachim CreditAttribution: joachim as a volunteer commentedComment #10
legolasboPatch rerolled
Comment #12
legolasboApparently the who's online block test was moved. glad we've got the deprecation warning :)
Comment #13
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedThe patch looks great. We should open a similar issue for
entity_view_multiple()
.Comment #14
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedNevermind me, we already have #2974258: Remove remaining usages of entity_view :)
Comment #15
catchIs there an issue open to properly deprecate node_view()?
Comment #16
legolasboI don't think there is @catch, and the same seems to be true for user_view() and taxonomy_term_view(). Those issues should be created, but that shouldn't block this patch from landing should it?
Comment #17
larowlanCorrect, they should be created, but are follow ups.
Comment #18
larowlanWe need a test that asserts this error is triggered (tagged with @Legacy)
Comment #19
volegerComment #20
andypostComment #21
andypostClosing it as duplicate of #2974253: Remove remaining usages of entity_view and entity_view_multiple from core
Patch to deprecate remains and test it all in #2974253-13: Remove remaining usages of entity_view and entity_view_multiple from core