function public function ArrayObject::offsetUnset

8.x-3.x ArrayObject.php public ArrayObject::offsetUnset($key)

Unsets the value at the specified key.

Parameters

mixed $key: A key.

Class

ArrayObject
Custom ArrayObject implementation.

Namespace

Drupal\bootstrap\Utility

Source src/Utility/ArrayObject.php (line 341)

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