Triggered before an Administration Area partial is rendered.
In the event handler you can update controller's properties and alter any data
passed to the partial.
public function subscribeEvents()
{
Backend::$events->addEvent('backend:onBeforeRenderPartial', $this, 'backend_render_partial');
}
public function backend_render_partial($controller, $view, $params)
{
if ($view == 'order_customer_notifications')
{
foreach ($controller->viewData['form_model']->customer_notifications as $record)
$record->email = 'xxx@xxxxxxxxx.xxx';
}
}