mediatekformation

HttpFoundationExtension extends AbstractExtension
in package

Twig extension for the Symfony HttpFoundation component.

Tags
author

Fabien Potencier fabien@symfony.com

final

since Symfony 4.4

Table of Contents

$urlHelper  : mixed
__construct()  : mixed
generateAbsoluteUrl()  : string
Returns the absolute URL for the given absolute or relative path.
generateRelativePath()  : string
Returns a relative path based on the current Request.
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.
getName()  : string
Returns the name of the extension.
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.

Properties

Methods

generateAbsoluteUrl()

Returns the absolute URL for the given absolute or relative path.

public generateAbsoluteUrl(string $path) : string

This method returns the path unchanged if no request is available.

Parameters
$path : string

The path

Tags
see
Request::getUriForPath()
Return values
string

The absolute URL

generateRelativePath()

Returns a relative path based on the current Request.

public generateRelativePath(string $path) : string

This method returns the path unchanged if no request is available.

Parameters
$path : string

The path

Tags
see
Request::getRelativeUriForPath()
Return values
string

The relative path

getName()

Returns the name of the extension.

public getName() : string
Return values
string

The extension name

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

getTests()

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

public getTests() : array<string|int, TwigTest>
Return values
array<string|int, TwigTest>

Search results