1 bootstrap.inc public BackdropCacheArray::offsetGet($offset)

File

core/includes/bootstrap.inc, line 386
Functions that need to be loaded on every Backdrop request.

Class

BackdropCacheArray
Provides a caching wrapper to be used in place of large array structures.

Code

public function offsetGet($offset) {
  if (isset($this->storage[$offset]) || array_key_exists($offset, $this->storage)) {
    return $this->storage[$offset];
  }
  else {
    return $this->resolveCacheMiss($offset);
  }
}