function HtmxAttributesTest::hxValidateDataProvider
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Htmx/HtmxAttributesTest.php \Drupal\Tests\Core\Htmx\HtmxAttributesTest::hxValidateDataProvider()
Provides data to ::testHxValidate.
Return value
array{?bool, string}[] Array of null|bool, string, expected.
File
-
core/
tests/ Drupal/ Tests/ Core/ Htmx/ HtmxAttributesTest.php, line 229
Class
- HtmxAttributesTest
- Test all attribute-related Htmx public methods.
Namespace
Drupal\Tests\Core\HtmxCode
public static function hxValidateDataProvider() : array {
return [
[
TRUE,
'true',
],
[
FALSE,
'false',
],
[
NULL,
'true',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.