Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module provides helper functions and quick actions for the ECA (Event, Condition, Action) system in Drupal. It enables users to perform tasks like making HTTP requests, manipulating form elements, managing cookies and headers, and interacting with Drupal services directly within ECA configurations without needing to create custom plugins.

Add helpers functions for ECA

Events

  • Preprocess event
  • Status message event

Actions:

  • Simple http request, if response data is json you can access with [token_name:json:response_data_key]
  • Workflow label
  • Workflow state
  • Get $_SERVER, $_COOKIE, $_SESSION, $_ENV, $_GET, $_POST variable
  • Set cookie value for response
  • Form Set any form element field value by key
  • Form Get any form element field value by key
  • Form attach library
  • Form add css class
  • Form dumper data (dev)
  • ThirtPartySetting Get/Set value
  • Preprocess Get/Set value for variables
  • Preprocess attach library
  • Preprocess add css class
  • Preprocess remove item
  • Headers Set/Remove values
  • Add custom tag/script/style to header, body top, body bottom
  • Alter status messages






ECA Quick Action
Create quick action for ECA without need define plugin and module.
Create file docroot/sites/eca/EcaActions.php


<?php
/**
 * Define the ECA quick actions.
 * 
 * Define action id, label, and callback, service.
 */
function ECAQuickActions(): array {
  return [
    "hello" => [
      "label" => "ECA Action Hello",
      "callback" => "eca_quick_actions_hello"
    ],
    "hello_inline" => [
      "label" => "ECA Action Inline",
      "callback" => function ($hello) {
        \Drupal::messenger()->addMessage('Inline callback' . $hello);
      }
    ],
    "hello_service" => [
      "label" => "ECA Action Call Drupal service",
      "service" => "messenger",
      "callback" => "addMessage"
    ]
  ];
}

function eca_quick_actions_hello($hello) {
  \Drupal::messenger()->addMessage('Hello world: ' . $hello);
  return "Hello world: " . $hello;
}

Use ECA Helper: Quick Action and choose the ECA Action Hello

SUPPORT DEVELOPMENT

Buy me a coffee 🥤

Donation vith Paypal by email: [email protected]








Activity

Total releases
15
First release
Dec 2024
Latest release
8 months ago
Releases (12 mo)
10 ▲ from 5
Maintenance
Slowing

Release Timeline

Releases

Version Type Release date
3.0.0-beta4 Pre-release Oct 30, 2025
3.0.0-beta3 Pre-release Oct 9, 2025
2.0.10 Stable Oct 9, 2025
3.0.0-beta2 Pre-release Oct 2, 2025
3.0.0-beta1 Pre-release Sep 18, 2025
3.0.x-dev Dev Sep 18, 2025
2.0.9 Stable Aug 25, 2025
2.0.8 Stable Aug 5, 2025
2.0.7 Stable Aug 4, 2025
2.0.6 Stable Jul 25, 2025
2.0.5 Stable May 29, 2025
2.0.4 Stable Apr 24, 2025
2.0.3 Stable Feb 7, 2025
2.0.2-beta2 Pre-release Dec 12, 2024
2.0.2-beta1 Pre-release Dec 11, 2024