W3cubDocs

/Symfony 2.7

Symfony\Bundle\TwigBundle\Extension\ActionsExtension

class ActionsExtension extends Twig_Extension

Twig extension for Symfony actions helper

Methods

__construct(ContainerInterface $container)

Constructor.

renderUri(string $uri, array $options = array())

Returns the Response content for a given URI.

array getTokenParsers()

Returns the token parser instance to add to the existing list.

getName()

Details

public __construct(ContainerInterface $container)

Constructor.

Parameters

ContainerInterface $container The service container

public renderUri(string $uri, array $options = array())

Returns the Response content for a given URI.

Parameters

string $uri A URI
array $options An array of options

See also

Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver::render()

public array getTokenParsers()

Returns the token parser instance to add to the existing list.

Return Value

array An array of Twig_TokenParser instances

public getName()

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Bundle/TwigBundle/Extension/ActionsExtension.html