Documentation

PlaceholderTokenParser extends AbstractTokenParser
in package

Parser 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 %}
Tags
author

Alexey Bobkov, Samuel Georges

Table of Contents

$parser  : Parser
decidePlaceholderEnd()  : mixed
getTag()  : string
Gets the tag name associated with this token parser.
parse()  : Node
Parses a token and returns a node.
setParser()  : mixed
Sets the parser associated with this token parser.
loadParams()  : mixed

Properties

Methods

getTag()

Gets the tag name associated with this token parser.

public getTag() : string
Return values
string

The tag name

setParser()

Sets the parser associated with this token parser.

public setParser(Parser $parser) : mixed
Parameters
$parser : Parser
Return values
mixed

loadParams()

protected loadParams(mixed $stream) : mixed
Parameters
$stream : mixed
Return values
mixed

Search results