Problem/Motivation

Result::render() can handle tokens like @total, @page, etc.
But it is not possible to hide a new token without extending the module.
It would be useful to have a hook that allows adding new tokens.

Steps to reproduce

Proposed resolution

Add a hook that lets modules add values to $replacements.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3618838

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

prudloff created an issue. See original summary.

chaitanyadessai made their first commit to this issue’s fork.

chaitanyadessai’s picture

Status: Active » Needs review

Added hook_views_area_result_replacements_alter() in the MR.