function ViewsPluginInterface::globalTokenReplace
Same name in other branches
- 9 core/modules/views/src/Plugin/views/ViewsPluginInterface.php \Drupal\views\Plugin\views\ViewsPluginInterface::globalTokenReplace()
- 8.9.x core/modules/views/src/Plugin/views/ViewsPluginInterface.php \Drupal\views\Plugin\views\ViewsPluginInterface::globalTokenReplace()
- 10 core/modules/views/src/Plugin/views/ViewsPluginInterface.php \Drupal\views\Plugin\views\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 139
Class
- ViewsPluginInterface
- Provides an interface for all views plugins.
Namespace
Drupal\views\Plugin\viewsCode
public function globalTokenReplace($string = '', array $options = []);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.