Deprecate node_get_recent()

Created on 26 April 2023, over 1 year ago
Updated 8 June 2023, over 1 year ago

Problem/Motivation

node_get_recent() is unused and untested in core. We should deprecate node_get_recent() in Drupal 10 for removal in Drupal 11, and point people to entity query or views as alternatives.

Since this is a straightforward deprecation with no bc layer we don't need any test coverage for it.

Tagging this as a novice task.

<!--h4 id="summary-steps-reproduce">Steps to reproduce</h4-->

Proposed resolution

We need to add @deprecated to the function documentation, and trigger_error() to the function itself, details of the docs/message format can be found in https://www.drupal.org/about/core/policies/core-change-policies/drupal-d... (and/or search for @deprecated in core to see examples).

Remaining tasks

  • Change Record

User interface changes

N/a

API changes

CR #3356654: node_get_recent() is deprecated

Data model changes

N/a

Release notes snippet

📌 Task
Status

Fixed

Version

11.0 🔥

Component
Node system 

Last updated 5 days ago

No maintainer
Created by

🇬🇧United Kingdom catch

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024