cms.block.render

Provides an opportunity to modify the rendered block content

Example usage:

Event::listen('cms.block.render', function ((string) $name, (string) $result) { if ($name === 'myBlockName') { return 'my custom content'; } });

Usage

Triggers

Class or file Line
Cms\Twig\Extension 208
Copyright © 2024 Winter CMS