[2.0.x] Add PluginSettingsInterface::settingsSummary()

Created on 15 April 2025, 27 days ago

Problem/Motivation

SourceInterface is extending PluginSettingsInterface which is heavily inspired from Core's PluginSettingsInterface

We initially didn't add a method inspired from FormatterInterface::settingsSummary() to this interface, because we didn't have usage at the time.

The upcoming https://www.drupal.org/project/display_builder needs it.

Proposed resolution

  1. Add method to our own PluginSettingsInterface
  2. Implement this method in SourcePluginBase: if $form['value'] is scalar, print it.
  3. Implement this method in slots sources:
    • BlockSource >> Selected block
    • ComponentSource >> Variant name
    • same as SourcePluginBase
    • WysiwygWidget >> The first characters (once tags are stripped) ?
    • FieldFormatterSourceDeriver >> ???
    • ViewFieldSource >> $form['ui_patterns_views_field']
    • ViewRowsSource >> $form['ui_patterns_views_field']

User interface changes

No

API changes

Nothing breaking.

Data model changes

No

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France pdureau Paris

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