Fix invalid array value for #attributes['id'] in Tamper plugin configuration form TamperFormBase

Created on 7 May 2025, 9 days ago

Problem/Motivation

The form element in the TamperFormBase.php form sets the id attribute incorrectly using an array instead of a string. This causes a fatal error:

mb_strtolower(): Argument #1 ($string) must be of type string, array given
Drupal\Component\Utility\Html::getId()

Steps to reproduce

  1. Go to a Feeds Tamper plugin configuration form (e.g., via a Feed Type).
  2. Select or attempt to configure a tamper plugin.
  3. Observe a fatal error related to Html::getId() or mb_strtolower().

Proposed resolution

Change:
'#attributes' => ['id' => ['plugin-config']],

To:
'#attributes' => ['id' => 'plugin-config'],

Remaining tasks

User interface changes

N/A

API changes

Data model changes

🐛 Bug report
Status

Active

Component

Code

Created by

🇯🇴Jordan mohammad-fayoumi Amman

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

Comments & Activities

Production build 0.71.5 2024