Cannot use object of type FormState as array

Created on 31 October 2024, about 2 months ago

Problem/Motivation

When trying to edit a field which has Pixabay automator enabled, there is an error:
Error: Cannot use object of type Drupal\Core\Form\FormState as array in Drupal\ai_automator_pixabay\Plugin\AiAutomatorType\PixabayImage->extraFormFields() (line 130 of /var/www/html/web/modules/contrib/ai_automator_pixabay/src/Plugin/AiAutomatorType/PixaBayImage.php).

Proposed resolution

In PixaBayImage.php extraFields() rename the $form to $formState in the function parameters.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇫🇮Finland merilainen

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

Comments & Activities

Production build 0.71.5 2024