Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PluginBase.php

function PluginBase::globalTokenReplace

Overrides ViewsPluginInterface::globalTokenReplace

2 calls to PluginBase::globalTokenReplace()
Title::preRender in core/modules/views/src/Plugin/views/area/Title.php
Performs any operations needed before full rendering.
TokenizeAreaPluginBase::tokenizeValue in core/modules/views/src/Plugin/views/area/TokenizeAreaPluginBase.php
Replaces value with special views tokens and global tokens.

File

core/modules/views/src/Plugin/views/PluginBase.php, line 342

Class

PluginBase
Base class for any views plugin types.

Namespace

Drupal\views\Plugin\views

Code

public function globalTokenReplace($string = '', array $options = []) {
    return \Drupal::token()->replace($string, [
        'view' => $this->view,
    ], $options);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal