Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
node system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2025 at 01:33 UTC
Updated:
15 Jul 2025 at 10:04 UTC
Jump to comment: Most recent
https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/node/...
This is a procedural function in node.module that can be deprecated in favour of an OOP API.
N/A
Deprecate the function with no replacement, we already have $node_type->getDescription();
Do it
node_type_get_description is deprecated
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
acbramley commentedThis function is unused by core and searching for it in contrib only brought up calls directly to
->getDescriptionComment #4
acbramley commentedComment #5
berdirNot sure if we should group some of these together, but it's straight forward and really just a leftover from a very long time ago.
Comment #6
catchCommitted/pushed to 11.x, thanks!
Comment #9
acbramley commentedThat sounds masochistic 😅 I'd rather bite sized chunks that don't get knocked back for being too large in scope.
Thanks for the quick turn around @catch!