You are here

class TestRegistry in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Theme/RegistryTest.php \Drupal\Tests\Core\Theme\TestRegistry

Hierarchy

Expanded class hierarchy of TestRegistry

File

core/tests/Drupal/Tests/Core/Theme/RegistryTest.php, line 144
Contains \Drupal\Tests\Core\Theme\RegistryTest.

Namespace

Drupal\Tests\Core\Theme
View source
class TestRegistry extends Registry {
  public function setTheme(ActiveTheme $theme) {
    $this->theme = $theme;
  }
  protected function init($theme_name = NULL) {
  }
  protected function getPath($module) {
    if ($module == 'theme_test') {
      return 'core/modules/system/tests/modules/theme_test';
    }
  }
  protected function listThemes() {
  }
  protected function initializeTheme() {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Registry::$cache protected property The cache backend to use for the complete theme registry data.
Registry::$initialized protected property Stores whether the registry was already initialized.
Registry::$lock protected property The lock backend that should be used.
Registry::$moduleHandler protected property The module handler to use to load modules.
Registry::$registry protected property The complete theme registry.
Registry::$root protected property The app root.
Registry::$runtimeRegistry protected property The incomplete, runtime theme registry.
Registry::$theme protected property The theme object representing the active theme for this registry.
Registry::$themeHandler protected property The theme handler.
Registry::$themeManager protected property The theme manager.
Registry::$themeName protected property The name of the theme for which to construct the registry, if given.
Registry::build protected function Builds the theme registry cache.
Registry::completeSuggestion protected function Completes the definition of the requested suggestion hook.
Registry::destruct public function Performs destruct operations. Overrides DestructableInterface::destruct
Registry::get public function Returns the complete theme registry from cache or rebuilds it.
Registry::getBaseHook public function Returns the base hook for a given hook suggestion.
Registry::getPrefixGroupedUserFunctions public function Gets all user functions grouped by the word before the first underscore.
Registry::getRuntime public function Returns the incomplete, runtime theme registry.
Registry::postProcessExtension protected function Completes the theme registry adding discovered functions and hooks.
Registry::processExtension protected function Process a single implementation of hook_theme().
Registry::reset public function Invalidates theme registry caches.
Registry::setCache protected function Persists the theme registry in the cache backend.
Registry::setThemeManager public function Sets the theme manager.
Registry::__construct public function Constructs a \Drupal\Core\Theme\Registry object.
TestRegistry::getPath protected function Wraps drupal_get_path(). Overrides Registry::getPath
TestRegistry::init protected function Initializes a theme with a certain name. Overrides Registry::init
TestRegistry::initializeTheme protected function
TestRegistry::listThemes protected function
TestRegistry::setTheme public function