function Htmx::reswapHeader
Set HX-Reswap header.
Parameters
string $strategy: Specify how the response will be swapped (see hx-swap).
Return value
static Self for chaining.
See also
https://htmx.org/reference/#response_headers
File
-
core/
lib/ Drupal/ Core/ Htmx/ Htmx.php, line 412
Class
- Htmx
- Presents the HTMX controls for developers to use with render arrays.
Namespace
Drupal\Core\HtmxCode
public function reswapHeader(string $strategy) : static {
$this->headers
->set('HX-Reswap', $strategy);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.