\Twig_TemplateInterface
Interface implemented by all compiled templates.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
interface Twig_TemplateInterface
{
- // constants
- const ANY_CALL = 'any';
- const ARRAY_CALL = 'array';
- const METHOD_CALL = 'method';
- // methods
- public string render()
- public void display()
- public Twig_Environment getEnvironment()
Constants
Name | Value |
---|---|
ANY_CALL | 'any' |
ARRAY_CALL | 'array' |
METHOD_CALL | 'method' |
Methods
public
- display() — Displays the template with the given context.
- getEnvironment() — Returns the bound environment for this template.
- render() — Renders the template with the given context and returns it as string.