system.extendTwig

Triggered in System\Twig\Extension.

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

Example usage:

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