You are here

public function ArrayObject::offsetGet in Express 8

Returns the value at the specified key.

Parameters

mixed $key: A key.

mixed $default: The default value to set if $key does not exist.

Return value

mixed The value.

7 calls to ArrayObject::offsetGet()
ArrayObject::__get in themes/contrib/bootstrap/src/Utility/ArrayObject.php
Returns the value at the specified key by reference.
Attributes::getAttribute in themes/contrib/bootstrap/src/Utility/Attributes.php
Retrieve a specific attribute from the array.
Attributes::getClasses in themes/contrib/bootstrap/src/Utility/Attributes.php
Retrieves classes from the array.
DrupalAttributes::getAttributes in themes/contrib/bootstrap/src/Utility/DrupalAttributes.php
Retrieves a specific attributes object.
Element::getProperty in themes/contrib/bootstrap/src/Utility/Element.php
Retrieves the render array for the element.

... See full list

File

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

Class

ArrayObject
Custom ArrayObject implementation.

Namespace

Drupal\bootstrap\Utility

Code

public function &offsetGet($key, $default = NULL) {
  if (!$this
    ->offsetExists($key)) {
    $this->array[$key] = $default;
  }
  $ret =& $this->array[$key];
  return $ret;
}