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()

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

Daniel Kulbe created an issue. See original summary.

  • rsvelko committed d3cf191a on 8.x-2.x authored by Daniel Kulbe
    Issue #3350782 by Daniel Kulbe: Missing ::label() implementation causes...
rsvelko’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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