public function ThemeRegistry::offsetExists
public ThemeRegistry::offsetExists($offset)
Implements ArrayAccess::offsetExists().
Overrides DrupalCacheArray::offsetExists
File
- includes/theme.inc, line 416
- The theme system, which controls the output of Drupal.
Class
- ThemeRegistry
- Builds the run-time theme registry.
Code
public function offsetExists($offset) { // Since the theme registry allows for theme hooks to be requested that // are not registered, just check the existence of the key in the registry. // Use array_key_exists() here since a NULL value indicates that the theme // hook exists but has not yet been requested. return array_key_exists($offset, $this->storage); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!theme.inc/function/ThemeRegistry::offsetExists/7.x