LoaderInterface
in
Interface all loaders must implement.
Tags
Table of Contents
Methods
- exists() : bool
- getCacheKey() : string
- Gets the cache key to use for the cache for a given template name.
- getSourceContext() : Source
- Returns the source context for a given template logical name.
- isFresh() : bool
Methods
exists()
public
exists(string $name) : bool
Parameters
- $name : string
Return values
boolgetCacheKey()
Gets the cache key to use for the cache for a given template name.
public
getCacheKey(string $name) : string
Parameters
- $name : string
Tags
Return values
stringgetSourceContext()
Returns the source context for a given template logical name.
public
getSourceContext(string $name) : Source
Parameters
- $name : string
Tags
Return values
SourceisFresh()
public
isFresh(string $name, int $time) : bool
Parameters
- $name : string
- $time : int
-
Timestamp of the last modification time of the cached template