function HtmxAttributesTest::apply

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Htmx/HtmxAttributesTest.php \Drupal\Tests\Core\Htmx\HtmxAttributesTest::apply()

Applies the Htmx attributes to a render array.

16 calls to HtmxAttributesTest::apply()
HtmxAttributesTest::testHxBoost in core/tests/Drupal/Tests/Core/Htmx/HtmxAttributesTest.php
Test boost method.
HtmxAttributesTest::testHxConfig in core/tests/Drupal/Tests/Core/Htmx/HtmxAttributesTest.php
Test config method.
HtmxAttributesTest::testHxDisable in core/tests/Drupal/Tests/Core/Htmx/HtmxAttributesTest.php
Test disable method.
HtmxAttributesTest::testHxHeaders in core/tests/Drupal/Tests/Core/Htmx/HtmxAttributesTest.php
Test headers method.
HtmxAttributesTest::testHxOn in core/tests/Drupal/Tests/Core/Htmx/HtmxAttributesTest.php
Test on method.

... See full list

File

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

Class

HtmxAttributesTest
Test all attribute-related Htmx public methods.

Namespace

Drupal\Tests\Core\Htmx

Code

protected function apply() : array {
  $render = [];
  $this->htmx
    ->applyTo($render);
  return $render;
}

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