Build URL from route¶
Plugin ID: eca_build_url_from_route
Available since: 3.1.3
Builds a URL from a route name, parameters and options.
Fields¶
Route name— config key:route_name-
Example:
entity.node.canonical
This field supports tokens.Type:
textfield· Required: yes · Default: empty string Route parameters— config key:parameters-
Enter a key-value list of parameters. Supports YAML format. Example:
node: 1. When using tokens and YAML altogether, make sure that tokens are wrapped as a string. Example: node: "[node:nid]"
This field supports tokens.Type:
textarea· Required: no · Default: empty string Additional options— config key:options-
Enter a key-value list of options. Supports YAML format. Use dot notation for nested arrays. Example:
query: foo: bar fragment: comments
When using tokens and YAML altogether, make sure that tokens are wrapped as a string. Example: fragment: "[node:nid]"
This field supports tokens.Type:
textarea· Required: no · Default: empty string Generate absolute URL— config key:absolute-
Check this to always generate an absolute URL (with scheme and host).
Type:
checkbox· Required: no · Default:false Name of token— config key:token_name-
Provide the name of a token where the generated URL should be stored. Please provide the token name only, without brackets.
Type:
textfield· Required: yes · Default: empty string