cms.template.processTwigContent
Provides an opportunity to modify Twig content before being processed by Twig. $dataHolder
= {content: $twigContent}
$dataHolder
= {content: $twigContent}Example usage:
Event::listen('cms.template.processTwigContent', function ((\Cms\Classes\CmsObject) $thisObject, (object) $dataHolder) { $dataHolder->content = "NO CONTENT FOR YOU!"; });
Usage
Triggers
Class or file | Line |
---|---|
Cms\Twig\Loader
|
61 |
Copyright © 2024 Winter CMS