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_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.
Please login to continue.