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

Breadcrumb

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

function ViewsPluginInterface::globalTokenReplace

Returns a string with any core tokens replaced.

Parameters

string $string: The string to preform the token replacement on.

array $options: An array of options, as passed to \Drupal\Core\Utility\Token::replace().

Return value

string The tokenized string.

1 method overrides ViewsPluginInterface::globalTokenReplace()
PluginBase::globalTokenReplace in core/modules/views/src/Plugin/views/PluginBase.php
Returns a string with any core tokens replaced.

File

core/modules/views/src/Plugin/views/ViewsPluginInterface.php, line 151

Class

ViewsPluginInterface
Provides an interface for all views plugins.

Namespace

Drupal\views\Plugin\views

Code

public function globalTokenReplace($string = '', array $options = []);

API Navigation

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