A Twig Extension is a collection of Twig functions, filters, tags, globals, and tests all as a single bundle. This approach is more advanced than adding a single function or filter using the traditional PL method, but allows greater flexibility as the whole Twig Extension can be installed in multiple environments.
A Twig Extension is a collection of Twig functions, filters, tags, globals, and tests all as a single bundle. This approach is more advanced than adding a single function or filter using the traditional PL method, but allows greater flexibility as the whole Twig Extension can be installed in multiple environments.