Allows modify a layouts's content.
The event handler should accepts an array of parameters with the following keys:
The event handler should return an array with at least a single element
content containing the updated content.
public function subscribeEvents()
{
Backend::$events->addEvent('cms:onGetTemplateContent', $this, 'get_template_content');
}
public function get_template_content($data)
{
$data['content'] = str_replace('NAME', 'OUR STORE NAME', $data['content']);
if($data['file_based'])
$data['content'] .= '<br>CMS template file: '.$data['file_name'];
$data['content'] .= '<br>CMS template name: '.$data['name'];
return $data;
}