TwigRenderer

class TwigRenderer extends FormRenderer implements TwigRendererInterface Constants CACHE_KEY_VAR Methods __construct(FormRendererEngineInterface $engine, CsrfTokenManagerInterface $csrfTokenManager = null) Constructor. FormRendererEngineInterface getEngine() Returns the engine used by this renderer. from FormRenderer setTheme(FormView $view, mixed $themes) Sets the theme(s) to be used for rendering a view and its children. from FormRenderer string renderCsrfToken(string

TwigLoaderPass

class TwigLoaderPass implements CompilerPassInterface Adds services tagged twig.loader as Twig loaders. Methods process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Details process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Parameters ContainerBuilder $container

TwigExtractor::setPrefix()

setPrefix(string $prefix) Sets the prefix that should be used for new found messages. Parameters string $prefix The prefix

TwigExtractor::extract()

extract(string|array $resource, MessageCatalogue $catalogue) Extracts translation messages from files, a file or a directory to the catalogue. Parameters string|array $resource files, a file or a directory MessageCatalogue $catalogue The catalogue

TwigExtractor

class TwigExtractor extends AbstractFileExtractor implements ExtractorInterface TwigExtractor extracts translation messages from a twig template. Methods __construct(Twig_Environment $twig) extract(string|array $resource, MessageCatalogue $catalogue) Extracts translation messages from files, a file or a directory to the catalogue. setPrefix(string $prefix) Sets the prefix that should be used for new found messages. Details __construct(Twig_Envi

TwigExtension::load()

load(array $configs, ContainerBuilder $container) Responds to the twig configuration parameter. Parameters array $configs ContainerBuilder $container A ContainerBuilder instance

TwigExtension::getXsdValidationBasePath()

string getXsdValidationBasePath() Returns the base path for the XSD files. Return Value string The XSD base path

TwigExtension::getNamespace()

string getNamespace() Returns the namespace to be used for this extension (XML namespace). Return Value string The XML namespace

TwigExtension

class TwigExtension extends Extension TwigExtension. Methods string getXsdValidationBasePath() Returns the base path for the XSD files. string getNamespace() Returns the namespace to be used for this extension (XML namespace). string getAlias() Returns the recommended alias to use in XML. from Extension ConfigurationInterface|null getConfiguration(array $config, ContainerBuilder $container) Returns extension configuration. from Extension array getClassesToCompile() Gets

TwigEnvironmentPass

class TwigEnvironmentPass implements CompilerPassInterface Adds tagged twig.extension services to twig service. Methods process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Details process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Parameters ContainerBuilder $container