public function MailSafetyController::details in Mail Safety 8
Let's the user view the details of an e-mail caught by Mail Safety.
Return value
array A render array of the e-mail details.
1 string reference to 'MailSafetyController::details'
File
- src/
Controller/ MailSafetyController.php, line 34
Class
- MailSafetyController
- Class MailSafetyController.
Namespace
Drupal\mail_safety\ControllerCode
public function details($mail_safety) {
return [
'#theme' => 'mail_safety_details',
'#mail' => $mail_safety['mail'],
'#details' => print_r($mail_safety['mail'], TRUE),
];
}