function TokenTest::providerTestValueCallback
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Render/Element/TokenTest.php \Drupal\Tests\Core\Render\Element\TokenTest::providerTestValueCallback()
- 8.9.x core/tests/Drupal/Tests/Core/Render/Element/TokenTest.php \Drupal\Tests\Core\Render\Element\TokenTest::providerTestValueCallback()
- 10 core/tests/Drupal/Tests/Core/Render/Element/TokenTest.php \Drupal\Tests\Core\Render\Element\TokenTest::providerTestValueCallback()
Data provider for testValueCallback().
File
-
core/
tests/ Drupal/ Tests/ Core/ Render/ Element/ TokenTest.php, line 31
Class
- TokenTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Render%21Element%21Token.php/class/Token/11.x" title="Stores token data in a hidden form field." class="local">\Drupal\Core\Render\Element\Token</a> @group Render
Namespace
Drupal\Tests\Core\Render\ElementCode
public static function providerTestValueCallback() {
$data = [];
$data[] = [
NULL,
FALSE,
];
$data[] = [
NULL,
NULL,
];
$data[] = [
'',
[
'test',
],
];
$data[] = [
'test',
'test',
];
$data[] = [
'123',
123,
];
return $data;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.