Deprecate Node::getTitle() & other entity-type-specific calls in favour of Entity::label()

Created on 8 November 2017, over 7 years ago
Updated 18 March 2025, 25 days ago

So as not to confuse developers and provide a more generic method, could we deprecate Node::getTitle() in favour of Entity::label()?

I'm not sure we need getTitle() if label() exists. Also, I can't find any documentation explaining when one should be used over the other. It seems like label() is always the way to go.

Let's do this for all entity-specific methods, not just Nodes:

Feature request
Status

Needs work

Version

11.0 🔥

Component

entity system

Created by

🇨🇦Canada colan Toronto 🇨🇦

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

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