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
setPrefix(string $prefix) Sets the prefix that should be used for new found messages. Parameters string $prefix The prefix
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
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
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
string getXsdValidationBasePath() Returns the base path for the XSD files. Return Value string The XSD base path
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
load(array $configs, ContainerBuilder $container) Responds to the twig configuration parameter. Parameters array $configs ContainerBuilder $container A ContainerBuilder instance
string getNamespace() Returns the namespace to be used for this extension (XML namespace). Return Value string The XML namespace
bool supports(string|TemplateReferenceInterface $name) Returns true if this class is able to render the given template. Parameters string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance Return Value bool true if this class supports the given template, false otherwise
Page 42 of 787