state_token
36 sites
Security covered
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.