Class Twig_TokenParser_Include

InheritanceTwig_TokenParser_Include » Twig_TokenParser
ImplementsTwig_TokenParserInterface
SubclassesTwig_TokenParser_Embed

Includes a template.

  {% include 'header.html' %}
    Body
  {% include 'footer.html' %}

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$parser Twig_Parser Twig_TokenParser

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getTag() Twig_TokenParser_Include
parse() Twig_TokenParser_Include
setParser() Sets the parser associated with this token parser. Twig_TokenParser

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
parseArguments() Twig_TokenParser_Include

Method Details

getTag() public method

public void getTag ( )
parse() public method

public void parse ( Twig_Token $token )
$token
parseArguments() protected method

protected void parseArguments ( )