You are here

public function TestPluginBase::viewsTokenReplace in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Tests/Plugin/PluginBaseTest.php \Drupal\views\Tests\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/src/Tests/Plugin/PluginBaseTest.php, line 81
Contains \Drupal\views\Tests\Plugin\PluginBaseTest.

Class

TestPluginBase
Helper class for using the PluginBase abstract class.

Namespace

Drupal\views\Tests\Plugin

Code

public function viewsTokenReplace($text, $tokens) {
  return parent::viewsTokenReplace($text, $tokens);
}