Documentation

UseTokenParser extends AbstractTokenParser
in package

Imports blocks defined in another template into the current template.

{% extends "base.html" %}

{% use "blocks.html" %}

{% block title %}{% endblock %} {% block content %}{% endblock %}

Tags
see
https://twig.symfony.com/doc/templates.html#horizontal-reuse

for details.

Table of Contents

$parser  : Parser
getTag()  : mixed
parse()  : mixed
setParser()  : mixed
Sets the parser associated with this token parser.

Properties

Methods

setParser()

Sets the parser associated with this token parser.

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

Search results