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

 $themeRegistry
 

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.

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

Member Function Documentation

findTemplate (   $name,
  $throw = TRUE 
)
protected

Finds the path to the requested template.

Parameters
string$nameThe name of the template to load.
bool$throwWhether to throw an exception when an error occurs.
Returns
string The path to the template.
Exceptions
\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: