System\Twig\Loader

Source: ~/modules/system/twig/Loader.php

Implements:

  • Twig_LoaderInterface

This class implements a Twig template loader for the core system and backend.

Protected properties

protected string $extension

Expected file extension

protected array $cache

Cache

Public methods

public void exists($name)
Parameters
  • $name

public void getCacheKey($name)
Parameters
  • $name

public void getFilename($name)
Parameters
  • $name

public void getSourceContext($name)
Parameters
  • $name

public void isFresh($name, $time)
Parameters
  • $name
  • $time

Protected methods

protected string findTemplate(string $name)

Gets the path of a view file

Parameters
  • string $name