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

Breadcrumb

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

function 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
Returns an array of available token replacements.

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 = []);

API Navigation

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