ParagraphsBehaviorInterface::settingsIcon() claims to return string[], but TestBoldTextBehavior::settingsIcon() does not return string[]

Created on 9 July 2025, 26 days ago

Problem/Motivation

ParagraphsBehaviorInterface::settingsIcon(), in its DocBlock, says this:

   * @return string[]
   *   The plugin settings.

However TestBoldTextBehavior::settingsIcon() contains this code:

     return [
        'bold' => [
          '#theme' => 'paragraphs_info_icon',
          '#message' => $this->t('Bold: Yes.'),
          '#icon' => 'bold',
        ],
      ];

This is not of type string[].

Proposed resolution

Document that settingsIcon should return an associative array, not an array of strings.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Documentation

Created by

🇨🇦Canada alberto56

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

Comments & Activities

Production build 0.71.5 2024