Undefined constant "Drupal\display_fields\Plugin\DisplayFieldsField\this"

Created on 3 November 2023, about 1 year ago

The line 167 of the src/Plugin/DisplayFieldsField/FieldReference.php file contains the following code.

   '#submit' => [[this, 'multistepSubmit']],

That line is causing the following error.

Error: Undefined constant "Drupal\display_fields\Plugin\DisplayFieldsField\this" in Drupal\display_fields\Plugin\DisplayFieldsField\FieldReference::buildFieldFormRow() (line 167 src/Plugin/DisplayFieldsField/FieldReference.php).

The code in that line must be changed as follows.

   '#submit' => [[$this, 'multistepSubmit']],

Since that is code in a PHP class, it should be $this, instead of this.

🐛 Bug report
Status

Fixed

Version

9.1

Component

Code

Created by

🇦🇹Austria jovan1348

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

Comments & Activities

Production build 0.71.5 2024