public function MetatagViewsCacheWrapper::globalTokenReplace in Metatag 8
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.
Overrides PluginBase::globalTokenReplace
File
- metatag_views/
src/ MetatagViewsCacheWrapper.php, line 291
Class
- MetatagViewsCacheWrapper
- This class wraps a Views cache plugin.
Namespace
Drupal\metatag_viewsCode
public function globalTokenReplace($string = '', array $options = []) {
return $this->plugin
->globalTokenReplace($string, $options);
}