Skip to content

Token: load route parameter

Plugin ID: eca_token_load_route_param

Available since: 1.0.0

Loads a route parameter into the token environment.

Fields

Request — config key: request

The request route match.
When using the "Defined by token" option, make sure there is a token with this name: eca_token_load_route_param_request

Type: select · Required: no · Default: 2

Allowed values: 2, 1, 0, _eca_token, ''

Name of route parameter — config key: parameter_name

The routes and their parameters can be found in the MODULE.routing.yml file. Example for the route entity.node.preview: /node/preview/{node_preview}/{view_mode_id} where node_preview and view_mode_id are the parameter names.
This field supports tokens.

Type: textfield · Required: no · Default: empty string

Name of token — config key: token_name

The name of the token, the parameter value gets stored into. Please provide the token name only, without brackets.

Type: textfield · Required: no · Default: empty string

Get raw value — config key: raw_value

If checked, the raw value of the route parameter will be stored into the token.

Type: checkbox · Required: no · Default: false