1 theme.inc public ThemeRegistry::offsetGet($offset)

Implements ArrayAccess::offsetGet().

Overrides BackdropCacheArray::offsetGet

File

core/includes/theme.inc, line 440
The theme system, which controls the output of Backdrop.

Class

ThemeRegistry
Builds the run-time theme registry.

Code

public function offsetGet($offset) {
  // If the offset is set but empty, it is a registered theme hook that has
  // not yet been requested. Offsets that do not exist at all were not
  // registered in hook_theme().
  if (isset($this->storage[$offset])) {
    return $this->storage[$offset];
  }
  elseif (array_key_exists($offset, $this->storage)) {
    return $this->resolveCacheMiss($offset);
  }
  return NULL;
}