use label method rather than getTitle

Created on 24 July 2023, almost 2 years ago

Problem/Motivation

method getTitle() is used for the title column in the table drag rows. Not every entity might have implemented getTitle() method, this may lead to WSOD for these entities

Steps to reproduce

use an entity that does not implement getTitle()

Proposed resolution

use label() method instead, which is required for every entity implementing EntityInterface: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Entity%21...

Remaining tasks

provide patch

User interface changes

na

API changes

na

Data model changes

na

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇩🇪Germany stefan.korn Jossgrund

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

Comments & Activities

Production build 0.71.5 2024