Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Consumers Token

Security covered Maintenance fixes only

This module allows you to dynamically insert the name of the requesting consumer into content. This is useful for scenarios where your Drupal site serves multiple applications and you need to customize output like meta tags based on which application is making the request.

Provides a token [consumers:current-name] for consumers name replacement depending on what consumer has requested the token.

Example use case

The example use case for the module is Meta Tags. Imagine you've got a Drupal backend which serves multiple frontend applications (websites). Having metatags configuration for nodes like [node:title] | [site:name] is wrong, because Drupal supports only one site name, but we want site name to be different per frontend application. The correct solution here is to return the name of the Consumer depending on which consumer has requested the meta tags. So changing the metatags config to something like [node:title] | [consumers:current-name] will do the trick.

Dependencies

Consumers module is the only dependency.

Ask your assistant about Consumers 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
1
Tracked since
Jan 2026
Latest release
9 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core PHP Release date
8.x-1.0-beta4 Pre-release 8–11 Jan 6, 2026