function Htmx::disinherit
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Htmx/Htmx.php \Drupal\Core\Htmx\Htmx::disinherit()
Creates a `data-hx-disinherit` attribute.
This attribute instructs HTMX to control and disable automatic HTMX attribute inheritance for child nodes.
Parameters
string $names: The attribute names to disinherit or * for all.
Return value
static Returns this object to allow chaining methods.
See also
https://htmx.org/attributes/hx-disinherit/
File
-
core/
lib/ Drupal/ Core/ Htmx/ Htmx.php, line 957
Class
- Htmx
- Presents the HTMX controls for developers to use with render arrays.
Namespace
Drupal\Core\HtmxCode
public function disinherit(string $names) : static {
$this->createStringAttribute('hx-disinherit', $names);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.