Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

ECA Helper

345 sites Security covered Drupal 10–11 ECA ecosystem
View on drupal.org

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]








Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
26
Tracked since
Oct 2024
Latest release
10 months ago
Releases (12 mo)
6 ▼ from 20
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
3.0.0-beta4 Pre-release 10–11 Oct 30, 2025
3.0.0-beta3 Pre-release 10–11 Oct 9, 2025
2.0.10 Stable 10–11 Oct 9, 2025
3.0.0-beta2 Pre-release 10–11 Oct 2, 2025
3.0.0-beta1 Pre-release 10–11 Sep 18, 2025
3.0.x-dev Dev 10–11 Sep 18, 2025
2.0.9 Stable 10–11 Aug 25, 2025
2.0.8 Stable 10–11 Aug 5, 2025
2.0.7 Stable 10–11 Aug 4, 2025
2.0.6 Stable 10–11 Jul 25, 2025
2.0.5 Stable 10–11 May 29, 2025
2.0.4 Stable 10–11 Apr 24, 2025
2.0.3 Stable 10–11 Feb 7, 2025
2.0.2 Stable 10–11 Jan 3, 2025
2.0.2-beta7 Pre-release 10–11 Dec 31, 2024
2.0.2-beta6 Pre-release 10–11 Dec 20, 2024
2.0.2-beta5 Pre-release 10–11 Dec 20, 2024
2.0.2-beta4 Pre-release 10–11 Dec 20, 2024
2.0.2-beta3 Pre-release 10–11 Dec 16, 2024
2.0.x-dev Dev 10–11 Dec 15, 2024
2.0.2-beta2 Pre-release 10–11 Dec 12, 2024
2.0.2-beta1 Pre-release 10–11 Dec 11, 2024
2.0.1 Stable 10–11 Nov 8, 2024
2.0.1-beta10 Pre-release 10–11 Oct 17, 2024
2.0.1-beta9 Pre-release 10–11 Oct 16, 2024
2.0.1-beta8 Pre-release 10–11 Oct 2, 2024