function HtmxRequestTest::htmxRequestProvider

Data provider for testHxRequest.

File

core/tests/Drupal/KernelTests/Core/Htmx/HtmxRequestTest.php, line 101

Class

HtmxRequestTest
Test the request attributes for HTMX.

Namespace

Drupal\KernelTests\Core\Htmx

Code

public static function htmxRequestProvider() : array {
  return [
    [
      'get',
    ],
    [
      'post',
    ],
    [
      'put',
    ],
    [
      'patch',
    ],
    [
      'delete',
    ],
  ];
}

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