cms.template.processTwigContent

Triggered in Cms\Twig\Loader.

Provides an opportunity to modify Twig content before being processed by Twig. $dataHolder = {content: $twigContent}

Example usage:

Event::listen('cms.template.processTwigContent', function ((\Cms\Classes\CmsObject) $thisObject, (object) $dataHolder) {
    $dataHolder->content = "New content";
});