Allows modify a partial'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:onGetPartialContent', $this, 'get_partial_content');
}
public function get_partial_content($data)
{
$data['content'] = str_replace('NAME', 'OUR STORE NAME', $data['content']);
if($data['file_based'])
$data['content'] .= '<br>CMS partial file: '.$data['file_name'];
$data['content'] .= '<br>CMS partial name: '.$data['name'];
return $data;
}