'Article', 'templateName' => 'article::templates.name' ], [ 'module' => 'StaticPages', 'templateName' => 'staticpages::templates.name' ] ]; } public static function beforeRender(Content $content) { $content->content = str_replace('a', 'AAAA', $content->content); return $content; } }