RequireLoginTokenParser

Type
Class
Namespace
craft\web\twig\tokenparsers
Inherits
craft\web\twig\tokenparsers\RequireLoginTokenParser » Twig_TokenParser
Implements
Twig_TokenParserInterface
Since
3.0

Class RequireLoginTokenParser

View source

Protected Properties

PropertyDescription
$parserTwig_Parser

Public Methods

MethodDescription
getTag()Gets the tag name associated with this token parser.
parse()Parses a token and returns a node.
setParser()Sets the parser associated with this token parser.

getTag()

Gets the tag name associated with this token parser.

View source

Returns

string – The tag name

Signature

public string getTag ( )

parse()

Parses a token and returns a node.

View source

Arguments

  • $token

Returns

Twig_Node – A Twig_Node instance

Throws

Signature

public Twig_Node parse ( Twig_Token $token )