You are here

protected function ComponentsLoader::findTemplate in Components! 8.2

Same name and namespace in other branches
  1. 3.x src/Template/Loader/ComponentsLoader.php \Drupal\components\Template\Loader\ComponentsLoader::findTemplate()

Throws

\Twig\Error\LoaderError

File

src/Template/Loader/ComponentsLoader.php, line 229

Class

ComponentsLoader
Loads templates from the filesystem.

Namespace

Drupal\components\Template\Loader

Code

protected function findTemplate($name, $throw = TRUE) {

  // The active theme might change during the request, so we wait until the
  // last possible moment to check before delivering a template.
  $this
    ->checkActiveTheme();
  return parent::findTemplate($name, $throw);
}