You are here

public function ArrayObject::offsetUnset in Express 8

Unsets the value at the specified key.

Parameters

mixed $key: A key.

2 calls to ArrayObject::offsetUnset()
ArrayObject::__unset in themes/contrib/bootstrap/src/Utility/ArrayObject.php
Unsets the value at the specified key.
Attributes::removeAttribute in themes/contrib/bootstrap/src/Utility/Attributes.php
Removes an attribute from the array.

File

themes/contrib/bootstrap/src/Utility/ArrayObject.php, line 345
Contains \Drupal\bootstrap\Utility\ArrayObject.

Class

ArrayObject
Custom ArrayObject implementation.

Namespace

Drupal\bootstrap\Utility

Code

public function offsetUnset($key) {
  if ($this
    ->offsetExists($key)) {
    unset($this->array[$key]);
  }
}