Drupal 8  8.0.2
ThemeRegistryLoader Class Reference
Inheritance diagram for ThemeRegistryLoader:

Public Member Functions

 __construct (Registry $theme_registry)

Protected Member Functions

 findTemplate ($name, $throw=TRUE)

Protected Attributes


Detailed Description

Loads templates based on information from the Drupal theme registry.

Allows for template inheritance based on the currently active template.

Constructor & Destructor Documentation

__construct ( Registry  $theme_registry)

Constructs a new ThemeRegistryLoader object.

\Drupal\Core\Theme\Registry$theme_registryThe theme registry.

Member Function Documentation

findTemplate (   $name,
  $throw = TRUE 

Finds the path to the requested template.

string$nameThe name of the template to load.
bool$throwWhether to throw an exception when an error occurs.
string The path to the template.
\Twig_Error_LoaderThrown if a template matching $name cannot be found.

References Drupal\cache().

Here is the call graph for this function:

The documentation for this class was generated from the following file: