You are here

public function Attributes::removeAttribute in Express 8

Removes an attribute from the array.

Parameters

string|array $name: The name of the attribute to remove.

See also

\Drupal\bootstrap\Utility\ArrayObject::offsetUnset()

File

themes/contrib/bootstrap/src/Utility/Attributes.php, line 109
Contains \Drupal\bootstrap\Utility\Attributes.

Class

Attributes
Class to help modify attributes.

Namespace

Drupal\bootstrap\Utility

Code

public function removeAttribute($name) {
  $this
    ->offsetUnset($name);
}