Missing ::label() implementation causes deprecation warning

Created on 28 March 2023, over 1 year ago
Updated 30 March 2023, over 1 year ago

Problem/Motivation

The list builder uses parent::buildRow($entity), which will call $entiy->label() for the $row['#weight'] column. Due the missing proper implementation, this will cause a deprecation warning in PHP 8.1 in htmlspecialchars() with the return value of label is null.

Proposed resolution

Rename the ::getLabel() entity method to ::label()

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany Daniel Kulbe Berlin

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

Comments & Activities

Production build 0.71.5 2024