Documentation

YamlExtension extends AbstractExtension
in package

FinalYes

Provides integration of the Yaml component with Twig.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Methods

dump()  : string
encode()  : string
getFilters()  : array<string|int, TwigFilter>
Returns a list of filters to add to the existing list.
getFunctions()  : array<string|int, TwigFunction>
Returns a list of functions to add to the existing list.
getNodeVisitors()  : array<string|int, NodeVisitorInterface>
Returns the node visitor instances to add to the existing list.
getOperators()  : array<string|int, array<string|int, mixed>>
Returns a list of operators to add to the existing list.
getTests()  : array<string|int, TwigTest>
Returns a list of tests to add to the existing list.
getTokenParsers()  : array<string|int, TokenParserInterface>
Returns the token parser instances to add to the existing list.

Methods

dump()

public dump(mixed $value[, int $inline = 0 ][, int $dumpObjects = 0 ]) : string
Parameters
$value : mixed
$inline : int = 0
$dumpObjects : int = 0
Return values
string

encode()

public encode(mixed $input[, int $inline = 0 ][, int $dumpObjects = 0 ]) : string
Parameters
$input : mixed
$inline : int = 0
$dumpObjects : int = 0
Return values
string

getFilters()

Returns a list of filters to add to the existing list.

public getFilters() : array<string|int, TwigFilter>
Return values
array<string|int, TwigFilter>

getOperators()

Returns a list of operators to add to the existing list.

public getOperators() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>>

First array of unary operators, second array of binary operators


        
On this page

Search results