function FormBuilderTest::providerTestValueCallableIsSafe
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php \Drupal\Tests\Core\Form\FormBuilderTest::providerTestValueCallableIsSafe()
- 10 core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php \Drupal\Tests\Core\Form\FormBuilderTest::providerTestValueCallableIsSafe()
- 11.x core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php \Drupal\Tests\Core\Form\FormBuilderTest::providerTestValueCallableIsSafe()
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ FormBuilderTest.php, line 796
Class
- FormBuilderTest
- @coversDefaultClass \Drupal\Core\Form\FormBuilder @group Form
Namespace
Drupal\Tests\Core\FormCode
public function providerTestValueCallableIsSafe() {
$data = [];
$data['string_no_slash'] = [
'Drupal\\Core\\Render\\Element\\Token::valueCallback',
TRUE,
];
$data['string_with_slash'] = [
'\\Drupal\\Core\\Render\\Element\\Token::valueCallback',
TRUE,
];
$data['array_no_slash'] = [
[
'Drupal\\Core\\Render\\Element\\Token',
'valueCallback',
],
TRUE,
];
$data['array_with_slash'] = [
[
'\\Drupal\\Core\\Render\\Element\\Token',
'valueCallback',
],
TRUE,
];
$data['closure'] = [
function () {
},
FALSE,
];
return $data;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.