HTMX: minimal response¶
Available since: 3.1.3
Forces the current request to return the minimal HTMX response instead of a full HTML page, by setting the "_wrapper_format" query parameter to "drupal_htmx".
Affects only the current request
This action adds the _wrapper_format=drupal_htmx query parameter to the
current request, so only that request returns the minimal
(main-content-only) response. To mark a route so that every request to
it returns the minimal response, use the
HTMX: mark route action
instead. The two approaches act at different stages of the request
lifecycle and are not interchangeable — see
Building HTMX-powered interfaces with ECA.