A class that defines a Twig environment for Drupal.
Instances of this class are used to store the configuration and extensions, and are used to load templates from the file system or other locations.
Expanded class hierarchy of TwigEnvironment
core\vendor\twig\twig\lib\Twig\Enviornment.php
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TwigEnvironment:: |
protected | property | ||
TwigEnvironment:: |
protected | property | ||
TwigEnvironment:: |
protected | property | Static cache of template classes. | |
TwigEnvironment:: |
public | function | ||
TwigEnvironment:: |
public | function | Implements Twig_Environment::loadTemplate(). | |
TwigEnvironment:: |
public | function | Checks if the compiled template needs an update. | |
TwigEnvironment:: |
protected | function | Gets the PHP code storage object to use for the compiled Twig files. | |
TwigEnvironment:: |
public | function | Compile the source and write the compiled template to disk. | |
TwigEnvironment:: |
public | function | Constructs a TwigEnvironment object and stores cache and storage internally. |