function HtmxAttributesTest::hxSwapOobDataProvider

Provides data to ::testHxSwapOob.

Return value

array{true|string, string}[] Array of true|string, expected.

File

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

Class

HtmxAttributesTest
Test all attribute-related Htmx public methods.

Namespace

Drupal\Tests\Core\Htmx

Code

public static function hxSwapOobDataProvider() : array {
  return [
    [
      TRUE,
      'true',
    ],
    [
      'body:beforeend',
      'body:beforeend',
    ],
  ];
}

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