cms.extendTwig

Triggered in Cms\Twig\Extension.

Provides an opportunity to extend the Twig environment used by the CMS

Example usage:

Event::listen('system.extendTwig', function ((Twig\Environment) $twig) {
    $twig->addExtension(new \Twig\Extension\StringLoaderExtension);
});