You are here

public function ComponentsLoader::exists in Components! 3.x

File

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

Class

ComponentsLoader
Loads namespaced templates from the filesystem.

Namespace

Drupal\components\Template\Loader

Code

public function exists($name) : bool {
  return (bool) $this->componentsRegistry
    ->getTemplate($name);
}