Make all token data providers discoverable and expose them in the UI and in the ECA Guide

Created on 16 March 2023, over 1 year ago
Updated 2 June 2024, 26 days ago

Since the data provider interface got removed from all system events and from most event subscribers in 📌 Enable event plugins to determine appliance Fixed already,
there are a few additional token data providers, that need to be moved as well or made discoverable otherwise:

  1. DataProviders behind EcaEvents::BEFORE_INITIAL_EXECUTION subscribers
    1. Drupal\eca\EventSubscriber\EcaExecutionAccountSubscriber
    2. Drupal\eca\EventSubscriber\EcaExecutionEntitySubscriber
    3. Drupal\eca\EventSubscriber\EcaExecutionFormSubscriber
    4. Drupal\eca\EventSubscriber\EcaExecutionSwitchAccountSubscriber
  2. DataProviders with arbitrary data
    1. Drupal\eca_queue\Task
    2. Drupal\eca\Token\ContextDataProvider
  3. DataProviders tagged with eca.token_data_provider
    1. Drupal\eca\Token\ContextDataProvider
    2. Drupal\eca\Token\CurrentUserDataProvider
    3. Drupal\eca_form\Token\CurrentFormDataProvider

That results in the following todo items:

  • The DataProviders behind EcaEvents::BEFORE_INITIAL_EXECUTION subscribers should be moved to ECA event plugin by providing traits that then need to be used in applicable plugins.
  • The provided session_user token in EcaExecutionSwitchAccountSubscriber could probably be moved to CurrentUserDataProvider
  • The CurrentFormDataProvider should be merged with the trait that will provide the data from EcaExecutionFormSubscriber
  • Define a token data declaration and apply that in all DataProviders
  • Expose the token data to the UI in modellers
  • Extract the token data and make it available in the ECA Guide
📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024