[Token: load route parameter] support load raw route parameter

Created on 19 August 2025, 6 days ago

Problem/Motivation

in process Token: load route parameter
Parts of converted route parameter not supported in token:

Invalid values given. Values must be represented as an associative array..\n\n#0 /var/www/html/docroot/modules/contrib/eca/src/Token/TokenDecoratorTrait.php(144): Drupal\eca\Plugin\DataType\DataTransferObject->setValue() #1 /var/www/html/docroot/modules/contrib/eca/src/Token/TokenServices.php(69): Drupal\eca\Token\ContribToken->addTokenData() #2 /var/www/html/docroot/modules/contrib/eca/modules/miscellaneous/src/Plugin/Action/TokenLoadRouteParameter.php(53): Drupal\eca\Token\TokenServices->addTokenData() #3 /var/www/html/docroot/modules/contrib/eca/src/Entity/Objects/EcaAction.php(107): Drupal\eca_misc\Plugin\Action\TokenLoadRouteParameter->execute() #4 /var/www/html/docroot/modules/contrib/eca/src/Processor.php(298): Drupal\eca\Entity\Objects\EcaAction->execute()

Steps to reproduce

Proposed resolution

Add an option to load raw route parameter as string value.

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇨🇳China ipumpkin

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024