You are here

public function MetatagViewsCacheWrapper::getAvailableGlobalTokens in Metatag 8

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.

Overrides PluginBase::getAvailableGlobalTokens

File

metatag_views/src/MetatagViewsCacheWrapper.php, line 298

Class

MetatagViewsCacheWrapper
This class wraps a Views cache plugin.

Namespace

Drupal\metatag_views

Code

public function getAvailableGlobalTokens($prepared = FALSE, array $types = []) {
  return $this->plugin
    ->getAvailableGlobalTokens($prepared, $types);
}