NodeListBuilder is using mark theme wrongly

Created on 4 June 2024, 12 months ago
Updated 25 July 2024, 10 months ago

Problem/Motivation

In https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/node/...

public function buildRow(EntityInterface $entity) {
    /** @var \Drupal\node\NodeInterface $entity */
    $mark = [
      '#theme' => 'mark',
      '#mark_type' => node_mark($entity->id(), $entity->getChangedTime()),
    ];

While the mark theme key is defined in https://git.drupalcode.org/project/drupal/-/blob/11.x/core/includes/them...

'mark' => [
      'variables' => ['status' => MARK_NEW],
    ],

So it is using the mark key with a wrong variable. But, it is working... and I have not found in core any other 'mark_type' occurrence.

Steps to reproduce

Disable the admin content view.

Proposed resolution

Use status.

Remaining tasks

- propose MR
- review

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

None

πŸ› Bug report
Status

Fixed

Version

10.3 ✨

Component
Node systemΒ  β†’

Last updated about 14 hours ago

No maintainer
Created by

πŸ‡«πŸ‡·France Grimreaper France πŸ‡«πŸ‡·

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024