function Htmx::reselectHeader
Set HX-Reselect header.
Parameters
string $strategy: CSS selector that changes the selection taken from the response.
Return value
static Self for chaining.
See also
https://htmx.org/reference/#response_headers
File
-
core/
lib/ Drupal/ Core/ Htmx/ Htmx.php, line 444
Class
- Htmx
- Presents the HTMX controls for developers to use with render arrays.
Namespace
Drupal\Core\HtmxCode
public function reselectHeader(string $strategy) : static {
$this->headers
->set('HX-Reselect', $strategy);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.