Class yii\twig\TwigEmptyLoader
| Inheritance | yii\twig\TwigEmptyLoader |
|---|---|
| Implements | Twig\Loader\LoaderInterface |
| Source Code | https://github.com/yiisoft/yii2-twig/blob/master/TwigEmptyLoader.php |
Empty loader used for environment initialisation
Public Methods
| Method | Description | Defined By |
|---|---|---|
| exists() | yii\twig\TwigEmptyLoader | |
| getCacheKey() | yii\twig\TwigEmptyLoader | |
| getSourceContext() | yii\twig\TwigEmptyLoader | |
| isFresh() | yii\twig\TwigEmptyLoader |
Method Details
| public void getCacheKey ( string $name ) | ||
| $name | ||
public function getCacheKey(string $name): string
{
throw new LoaderError("Can not render using empty loader");
}
| public void getSourceContext ( string $name ) | ||
| $name | ||
public function getSourceContext(string $name): Source
{
throw new LoaderError("Can not render using empty loader");
}