public function TestPluginBase::viewsTokenReplace in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/tests/src/Kernel/Plugin/PluginBaseTest.php \Drupal\Tests\views\Kernel\Plugin\TestPluginBase::viewsTokenReplace()
Replaces Views' tokens in a given string. The resulting string will be sanitized with Xss::filterAdmin.
Parameters
$text: Unsanitized string with possible tokens.
$tokens: Array of token => replacement_value items.
Return value
string
Overrides PluginBase::viewsTokenReplace
File
- core/
modules/ views/ tests/ src/ Kernel/ Plugin/ PluginBaseTest.php, line 91 - Contains \Drupal\views\Tests\Plugin\PluginBaseTest.
Class
- TestPluginBase
- Helper class for using the PluginBase abstract class.
Namespace
Drupal\Tests\views\Kernel\PluginCode
public function viewsTokenReplace($text, $tokens) {
return parent::viewsTokenReplace($text, $tokens);
}