function HtmxAttributesTest::booleanStringDataProvider

Provides data to ::testHxPushUrl and :testHxReplaceUrl.

Return value

array{bool, string}[] Array of <bool, string> expected.

File

core/tests/Drupal/Tests/Core/Htmx/HtmxAttributesTest.php, line 192

Class

HtmxAttributesTest
Test all attribute-related Htmx public methods.

Namespace

Drupal\Tests\Core\Htmx

Code

public static function booleanStringDataProvider() : array {
  return [
    [
      TRUE,
      'true',
    ],
    [
      FALSE,
      'false',
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.