Part of the ECA ecosystem · 51 projects
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.
If you want to use this module, your options are:
- Choose another, actively maintained module instead
- Following the unsupported project process.
- Hire someone to fix the security bug so the module can be re-published and supported (Consider hiring companies listed in the Marketplace)
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
Donation vith Paypal by email: [email protected]
Ask your assistant about ECA Helper
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
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.
More in the ECA ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 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 | ||
| 2.0.1-beta7 | Pre-release | 10–11 | PHP >=8.1 | Sep 4, 2024 | |
| 2.0.1-beta6 | Pre-release | 10–11 | PHP >=8.1 | Aug 26, 2024 | |
| 2.0.1-beta5 | Pre-release | 10–11 | PHP >=8.1 | Aug 23, 2024 | |
| 2.0.1-beta4 | Pre-release | 10–11 | PHP >=8.1 | Aug 19, 2024 |