Use plugin short_title for admin summary in ViewsArgumentDefault

Created on 24 March 2024, 3 months ago
Updated 10 April 2024, 3 months ago

Problem/Motivation

Found in πŸ“Œ Convert ViewsArgumentDefault plugin discovery to attributes Active . It was noted by @alexpott in core/modules/views/src/Attribute/ViewsArgumentDefault.php

I'm not convinced this is actually used - see \Drupal\views\Plugin\views\argument\ArgumentPluginBase::defaultArgumentForm() but we could easily change $options[$id] = $info['title']; to $options[$id] = $plugin->getTitle(); and then it would be. Can someone file a follow-up to look at either removing short title or adding support for it?

Suggested in #2: use it to show the selected argument default plugin so users don't have to open the edit dialog to see this information

Steps to reproduce

NA

Proposed resolution

Use the $plugin->pluginTitle() in the ViewsUI to show which (if any) argument default plugin has been selected.

Remaining tasks

Determine if it should be removed or supported

User interface changes

Users can see which argument default plugin has been selected for a contextual filter without having to open the edit dialog

API changes

None

Data model changes

None

Release notes snippet

TBD

πŸ“Œ Task
Status

Fixed

Version

10.3 ✨

Component
ViewsΒ  β†’

Last updated 20 minutes ago

Created by

πŸ‡ΊπŸ‡ΈUnited States smustgrave

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024