Drupal is a registered trademark of Dries Buytaert
cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)!

state_token

36 sites Security covered
View on drupal.org

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.

Activity

Total releases
2
First release
Dec 2024
Latest release
1 month ago
Release cadence
496 days
Stability
0% stable

Releases

Version Type Release date
1.0.0-beta4 Pre-release Apr 20, 2026
1.0.0-beta3 Pre-release Dec 10, 2024