function HtmxRequestInfoTrait::isHtmxBoosted
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Htmx/HtmxRequestInfoTrait.php \Drupal\Core\Htmx\HtmxRequestInfoTrait::isHtmxBoosted()
Determines if the request is boosted by HTMX.
Return value
bool TRUE if the 'HX-Boosted' header is present.
File
-
core/
lib/ Drupal/ Core/ Htmx/ HtmxRequestInfoTrait.php, line 36
Class
- HtmxRequestInfoTrait
- Provides methods for getting information about the HTMX request.
Namespace
Drupal\Core\HtmxCode
protected function isHtmxBoosted() : bool {
return $this->getRequest()->headers
->has('HX-Boosted');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.