function ViewsPluginInterface::getAvailableGlobalTokens

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/ViewsPluginInterface.php \Drupal\views\Plugin\views\ViewsPluginInterface::getAvailableGlobalTokens()
  2. 8.9.x core/modules/views/src/Plugin/views/ViewsPluginInterface.php \Drupal\views\Plugin\views\ViewsPluginInterface::getAvailableGlobalTokens()
  3. 10 core/modules/views/src/Plugin/views/ViewsPluginInterface.php \Drupal\views\Plugin\views\ViewsPluginInterface::getAvailableGlobalTokens()

Returns an array of available token replacements.

Parameters

bool $prepared: Whether to return the raw token info for each token or an array of prepared tokens for each type. E.g. "[view:name]".

array $types: An array of additional token types to return, defaults to 'site' and 'view'.

Return value

array An array of available token replacement info or tokens, grouped by type.

1 method overrides ViewsPluginInterface::getAvailableGlobalTokens()
PluginBase::getAvailableGlobalTokens in core/modules/views/src/Plugin/views/PluginBase.php

File

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

Class

ViewsPluginInterface
Provides an interface for all views plugins.

Namespace

Drupal\views\Plugin\views

Code

public function getAvailableGlobalTokens($prepared = FALSE, array $types = []);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.