function Htmx::hasHeader
Checks if a header is set.
Parameters
string $name: The name of the header.
Return value
bool True if header is stored.
File
-
core/
lib/ Drupal/ Core/ Htmx/ Htmx.php, line 241
Class
- Htmx
- Presents the HTMX controls for developers to use with render arrays.
Namespace
Drupal\Core\HtmxCode
public function hasHeader(string $name) : bool {
return $this->headers
->has($name);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.