Menu

## TemplateLoader
in package
implements LoaderInterface

TemplateLoader.php : 8

### Interfaces, Classes and Traits

LoaderInterface

### Table of Contents

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()

TemplateLoader.php : 66
`public exists(string $name) : bool`

##### Parameters

$name : string

##### Return values

bool —

#### getCacheKey()

TemplateLoader.php : 47

Gets the cache key to use for the cache for a given template name.

`public getCacheKey(string $name) : string`

##### Parameters

$name : string

##### Tags

throws
  LoaderError

  When $name is not found

##### Return values

string —

#### getSourceContext()

TemplateLoader.php : 18

Returns the source context for a given template logical name.

`public getSourceContext(string $name) : Source`

##### Parameters

$name : string

##### Tags

throws
  LoaderError

  When $name is not found

##### Return values

Source —

#### isFresh()

TemplateLoader.php : 57
`public isFresh(string $name, int $time) : bool`

##### Parameters

$name : string
$time : int

  Timestamp of the last modification time of the cached template

##### Tags

throws
  LoaderError

  When $name is not found

##### Return values

bool —

## Search results