$this->messenger must be initialised in create method

Created on 16 May 2023, about 1 year ago
Updated 18 May 2023, about 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.69.0 2024