Cms\Twig\PlaceholderTokenParser

Overview

PlaceholderTokenParser for the {% placeholder %} Twig tag.

{% placeholder head %}

or - use default placeholder content

{% placeholder head %}
    <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet"/>
{% endshowblock %}
Extends
  • Twig\TokenParser\AbstractTokenParser
Implements
  • Twig\TokenParser\TokenParserInterface

Protected Properties

There are no protected properties in the class.

Show inherited protected properties

Inherited Protected Properties

  • $parser - (defined in Twig\TokenParser\AbstractTokenParser)

Public Methods

public decidePlaceholderEnd()

public decidePlaceholderEnd($token): void

public getTag()

public getTag(): string 

getTag name associated with this token parser.

public parse()

public parse($token): TwigNode 

parse a token and returns a node.

Show inherited public methods

Inherited Public Methods

  • setParser() - (defined in Twig\TokenParser\AbstractTokenParser)

Protected Methods

protected loadParams()

protected loadParams($stream): void