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