function Htmx::refreshHeader
Set HX-Refresh header.
Parameters
bool $refresh: If set to “true” the client-side will do a full refresh of the page.
Return value
static Self for chaining.
See also
https://htmx.org/reference/#response_headers
File
-
core/
lib/ Drupal/ Core/ Htmx/ Htmx.php, line 396
Class
- Htmx
- Presents the HTMX controls for developers to use with render arrays.
Namespace
Drupal\Core\HtmxCode
public function refreshHeader(bool $refresh) : static {
$this->headers
->set('HX-Refresh', $refresh ? 'true' : 'false');
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.