public function ViewsPluginInterface::getAvailableGlobalTokens in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 - Returns an array of available token replacements.
File
- core/
modules/ views/ src/ Plugin/ views/ ViewsPluginInterface.php, line 121 - Contains \Drupal\views\Plugin\views\ViewsPluginInterface.
Class
- ViewsPluginInterface
- Provides an interface for all views plugins.
Namespace
Drupal\views\Plugin\viewsCode
public function getAvailableGlobalTokens($prepared = FALSE, array $types = array());