Event-Condition-Action (ECA) is a rules engine for Drupal. The core module acts as a processor that validates and executes event-condition-action plugins. For more information, visit the ECA: Event - Condition - Action page on Drupal.org.
Expected error when integrating the ECA module with Site Studio
If you install the ECA module and run a Site Studio rebuild, the process might fail with the [error] expected selector error.
To resolve this error and prevent the Site Studio API from processing ECA tokens, apply the following patch:
diff --git a/src/Services/CohesionUtils.php b/src/Services/CohesionUtils.php
index 075e754589..5fbec297dc 100644
--- a/src/Services/CohesionUtils.php
+++ b/src/Services/CohesionUtils.php
@@ -252,7 +252,7 @@ class CohesionUtils {
if ($found_tokens = $token_service->scan($value)) {
foreach ($found_tokens as $context => $token_group) {
- if (in_array($context, array_keys($token_info['types']))) {
+ if (in_array($context, array_keys($token_info['types'])) && $context !== '_eca_root_token') {
foreach ($token_group as $token) {
$context_variable = str_replace('-', '_', $context);
This solution is not part of a Site Studio release and is specific to the ECA module.
Event-Condition-Action (ECA) is a rules engine for Drupal. The core module acts as a processor that validates and executes event-condition-action plugins. For more information, visit the ECA: Event - Condition - Action page on Drupal.org.
Expected error when integrating the ECA module with Site Studio
If you install the ECA module and run a Site Studio rebuild, the process might fail with the [error] expected selector error.
To resolve this error and prevent the Site Studio API from processing ECA tokens, apply the following patch:
diff --git a/src/Services/CohesionUtils.php b/src/Services/CohesionUtils.php
index 075e754589..5fbec297dc 100644
--- a/src/Services/CohesionUtils.php
+++ b/src/Services/CohesionUtils.php
@@ -252,7 +252,7 @@ class CohesionUtils {
if ($found_tokens = $token_service->scan($value)) {
foreach ($found_tokens as $context => $token_group) {
- if (in_array($context, array_keys($token_info['types']))) {
+ if (in_array($context, array_keys($token_info['types'])) && $context !== '_eca_root_token') {
foreach ($token_group as $token) {
$context_variable = str_replace('-', '_', $context);
This solution is not part of a Site Studio release and is specific to the ECA module.
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.