interface LoaderInterface
Same name in this branch
- 11.1.x vendor/composer/composer/src/Composer/Package/Loader/LoaderInterface.php \Composer\Package\Loader\LoaderInterface
- 11.1.x vendor/symfony/serializer/Mapping/Loader/LoaderInterface.php \Symfony\Component\Serializer\Mapping\Loader\LoaderInterface
- 11.1.x vendor/symfony/validator/Mapping/Loader/LoaderInterface.php \Symfony\Component\Validator\Mapping\Loader\LoaderInterface
Interface all loaders must implement.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- interface \Twig\Loader\LoaderInterface
Expanded class hierarchy of LoaderInterface
All classes that implement LoaderInterface
4 files declare their use of LoaderInterface
- ComponentLoader.php in core/
lib/ Drupal/ Core/ Template/ Loader/ ComponentLoader.php - Environment.php in vendor/
twig/ twig/ src/ Environment.php - StringLoader.php in core/
lib/ Drupal/ Core/ Template/ Loader/ StringLoader.php - TwigEnvironment.php in core/
lib/ Drupal/ Core/ Template/ TwigEnvironment.php
File
-
vendor/
twig/ twig/ src/ Loader/ LoaderInterface.php, line 22
Namespace
Twig\LoaderView source
interface LoaderInterface {
/**
* Returns the source context for a given template logical name.
*
* @throws LoaderError When $name is not found
*/
public function getSourceContext(string $name) : Source;
/**
* Gets the cache key to use for the cache for a given template name.
*
* @throws LoaderError When $name is not found
*/
public function getCacheKey(string $name) : string;
/**
* @param int $time Timestamp of the last modification time of the cached template
*
* @throws LoaderError When $name is not found
*/
public function isFresh(string $name, int $time) : bool;
/**
* @return bool
*/
public function exists(string $name);
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
LoaderInterface::exists | public | function | 5 | |
LoaderInterface::getCacheKey | public | function | Gets the cache key to use for the cache for a given template name. | 5 |
LoaderInterface::getSourceContext | public | function | Returns the source context for a given template logical name. | 5 |
LoaderInterface::isFresh | public | function | 5 |