This module adds tokens returning the value of states.
Features
The module adds a token for each state existing on your site. When used, these tokens are replaced by the value of the state.
(The value needs to be a string in order for this to work correctly.)
Post-Installation
You have to explicitly allow some states to be exposed as tokens:
$settings['state_token_allowed_patterns'] = [
'foo.*',
];
Then rebuild the cache and the state tokens will become available.
Supporting organizations:
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Developer tools
37 sites report using this module
- Created by prudloff on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
1.0.0-beta4
released 20 April 2026
Works with Drupal: ^9 || ^10 || ^11
Install:
Development version: 1.x-dev updated 20 Apr 2026 at 13:56 UTC

