function Htmx::__construct
Initialize empty storage.
Allows for passing a populated HeaderBag to support merging.
File
-
core/
lib/ Drupal/ Core/ Htmx/ Htmx.php, line 101
Class
- Htmx
- Presents the HTMX controls for developers to use with render arrays.
Namespace
Drupal\Core\HtmxCode
public function __construct(protected Attribute $attributes = new Attribute(), protected HeaderBag $headers = new HeaderBag(), protected CacheableMetadata $cacheableMetadata = new CacheableMetadata()) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.