Change label of arguments (contextual filters) in edit block form to include administrative title (admin_label) set in the view

Created on 13 July 2023, 12 months ago
Updated 23 November 2023, 7 months ago

Problem/Motivation

Labels of input fields generated for every contextual filter in edit block form are not including Administrative title admin_label set in view configuration.

Steps to reproduce

  1. Add some contextual filter with display view of type block override.
  2. Change Administrative title of it.
  3. Add/edit block of this type.

There is only default title generated with

'#title' => $this->t('Override %plugin', ['%plugin' => $item->pluginTitle()]),

Proposed resolution

Use adminLabel() method rather than pluginTitle()

From

'#title' => $this->t('Override %plugin', ['%plugin' => $item->pluginTitle()]),

to

'#title' => $this->t('Override %plugin', ['%plugin' => $item->adminLabel()]),
πŸ› Bug report
Status

Fixed

Version

1.2

Component

Code

Created by

πŸ‡΅πŸ‡±Poland SebaZ

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

Comments & Activities

Production build 0.69.0 2024