function Htmx::removeHeader

Removes a header from the header store.

Parameters

string $name: The header name to remove.

Return value

static Returns this object to allow chaining methods.

File

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

Class

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

Namespace

Drupal\Core\Htmx

Code

public function removeHeader(string $name) : static {
  $this->headers
    ->remove($name);
  return $this;
}

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