function Htmx::removeAttribute

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Htmx/Htmx.php \Drupal\Core\Htmx\Htmx::removeAttribute()

Removes an attribute from the attribute store.

Parameters

string $name: The attribute name to remove.

Return value

static Returns this object to allow chaining methods.

File

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

Class

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

Namespace

Drupal\Core\Htmx

Code

public function removeAttribute(string $name) : static {
  $this->attributes
    ->removeAttribute($name);
  return $this;
}

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