function HtmxTestAttachmentsController::replaceWithAjax

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/test_htmx/src/Controller/HtmxTestAttachmentsController.php \Drupal\test_htmx\Controller\HtmxTestAttachmentsController::replaceWithAjax()

We need a static callback that ignores callback parameters.

Return value

array The render array.

File

core/modules/system/tests/modules/test_htmx/src/Controller/HtmxTestAttachmentsController.php, line 84

Class

HtmxTestAttachmentsController
Returns responses for HTMX Test Attachments routes.

Namespace

Drupal\test_htmx\Controller

Code

public static function replaceWithAjax() : array {
  return static::generateHtmxButton();
}

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