Skip to content

Token: load route parameter

Available since: 1.0.0

Loads a route parameter into the token environment.



The request route match.

Name of route parameter

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.

Name of token

The name of the token, the parameter value gets stored into.