Twig API
Interface

Twig_ExistsLoaderInterface

interface Twig_ExistsLoaderInterface

Adds an exists() method for loaders.

Methods

boolean exists(string $name)

Check if we have the source code of a template, given its name.

Details

at line 27
public boolean exists(string $name)

Check if we have the source code of a template, given its name.

Parameters

string $name The name of the template to check if we can load

Return Value

boolean If the template source code is handled by this loader or not