Class Twig_TokenParser_Import

InheritanceTwig_TokenParser_Import » Twig_TokenParser

Imports macros.

  {% import 'forms.html' as forms %}

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$parser Twig_Parser Twig_TokenParser

Public Methods

Hide inherited methods

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

Method Details

getTag() public method

public void getTag ( )
parse() public method

public void parse ( Twig_Token $token )