function Htmx::ignore

Creates a `data-hx-ignore` attribute.

This attribute instructs HTMX to disable HTMX processing for the given node and any descendants.

Return value

static Returns this object to allow chaining methods.

See also

https://four.htmx.org/reference/attributes/hx-ignore

File

core/lib/Drupal/Core/Htmx/Htmx.php, line 1094

Class

Htmx
Presents the HTMX controls for developers to use with render arrays.

Namespace

Drupal\Core\Htmx

Code

public function ignore() : static {
  $this->createBooleanAttribute('hx-ignore', TRUE, self::NO_MODIFIER);
  return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.