$this->messenger must be initialised in create method

Created on 16 May 2023, over 1 year ago
Updated 18 May 2023, over 1 year ago

Problem/Motivation

Sometimes $this->messenger is not defined, we should call $this->setMessenger on create when using MessengerTrait inherited from FormBase. Alternatively, we can call always to $this->messenger() method instead of $this->messenger variable.

Proposed resolution

Call to setMessenger in SyncForm create method.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇪🇸Spain Juanjol Navarra

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

Comments & Activities

Production build 0.71.5 2024