You are here

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'
mail_safety.routing.yml in ./mail_safety.routing.yml
mail_safety.routing.yml

File

src/Controller/MailSafetyController.php, line 34

Class

MailSafetyController
Class MailSafetyController.

Namespace

Drupal\mail_safety\Controller

Code

public function details($mail_safety) {
  return [
    '#theme' => 'mail_safety_details',
    '#mail' => $mail_safety['mail'],
    '#details' => print_r($mail_safety['mail'], TRUE),
  ];
}