LogMessageEvent tokens not available

Created on 16 July 2024, 3 months ago
Updated 6 August 2024, 2 months ago

Problem/Motivation

\Drupal\eca_log\Plugin\ECA\Event\LogEvent::getData() only creates the token data if $event->getLogData() returns not null. However, in the case of \Drupal\eca_log\Event\LogMessageEvent, $event->getLogData() always returns null and tokens are not available.

The current logic has been introduced in https://www.drupal.org/project/eca/issues/3382070 📌 Enable event plugins to determine appliance Fixed .

Steps to reproduce

  • Create a model that gets triggered on event "Log message created"
  • Add an action "Display a message to the user" and "[log:message]" as message, replace tokens enabled
  • The displayed message is empty
🐛 Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

🇨🇭Switzerland boromino

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

Comments & Activities

Production build 0.71.5 2024