Problem/Motivation

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.

Steps to reproduce

N/A

Proposed resolution

Deprecate the function with no replacement, we already have $node_type->getDescription();

Remaining tasks

Do it

API changes

node_type_get_description is deprecated

Issue fork drupal-3531944

Command icon Show commands

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

acbramley created an issue. See original summary.

acbramley’s picture

Status: Active » Needs review

This function is unused by core and searching for it in contrib only brought up calls directly to ->getDescription

acbramley’s picture

berdir’s picture

Status: Needs review » Reviewed & tested by the community

Not 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.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 11.x, thanks!

  • catch committed 2f651dde on 11.x
    Issue #3531944 by acbramley: Deprecate node_type_get_description
    
acbramley’s picture

Not sure if we should group some of these together

That 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!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.