Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Usage Milestone: Time Field for Drupal 8+ Module time_field crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

State Token

21 sites Security covered
View on drupal.org

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.

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
2
Tracked since
Dec 2024
Latest release
4 months ago
Releases (12 mo)
1
Maintenance
Active

Releases

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