Esempio n. 1
0
 public function getBody(IncidentInterface $incident, $type = 'html')
 {
     $parameters = array('incident' => $incident, 'txtOrHtml' => $type);
     $template = $incident->getReportEdit() ? $incident->getReportEdit() : $this->reports_path . '/' . $incident->getType()->getSlug() . 'Report.html.twig';
     return $this->templating->render($template, $parameters);
 }