Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

State Token

Security covered Maintenance fixes only 21 sites

This module allows you to use Drupal's state values within tokens. Once configured, you can insert tokens into your content or configurations that will dynamically display the current value of specified states.

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.

Ask your assistant about State Token

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Jun 2023
Latest release
5 months ago
Releases (12 mo)
1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-beta4 Pre-release 9–11 Apr 20, 2026
1.0.0-beta3 Pre-release 9–11 Dec 10, 2024
1.0.0-beta2 Pre-release 9–10 Oct 10, 2023
1.0.0-beta1 Pre-release 9 Jun 22, 2023
1.x-dev Dev 10–11 Jun 22, 2023