public function ThemeRegistry::offsetExists

Overrides CacheArray::offsetExists().

Overrides CacheArray::offsetExists

File

drupal/core/lib/Drupal/Core/Utility/ThemeRegistry.php, line 85
Definition of Drupal\Core\Utility\ThemeRegistry

Class

ThemeRegistry
Builds the run-time theme registry.

Namespace

Drupal\Core\Utility

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);
}