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
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
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
load(array $configs, ContainerBuilder $container) Responds to the twig configuration parameter. Parameters array $configs ContainerBuilder $container A ContainerBuilder instance
string getXsdValidationBasePath() Returns the base path for the XSD files. Return Value string The XSD base path
string getNamespace() Returns the namespace to be used for this extension (XML namespace). Return Value string The XML namespace
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
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
Page 42 of 787