| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function actionShowSubmission(string $submissionId = null, string $siteHandle = null) |
||
| 19 | { |
||
| 20 | $query = new ContactFormSubmissionQuery(ContactFormSubmission::class); |
||
| 21 | $query->id = $submissionId; |
||
| 22 | |||
| 23 | /* @var ContactFormSubmission $submission */ |
||
| 24 | $submission = $query->one(); |
||
| 25 | |||
| 26 | $messageObject = ContactFormExtensions::$plugin->contactFormExtensionsService->utf8AllTheThings((array) json_decode($submission->message)); |
||
| 27 | $variables = [ |
||
| 28 | 'submission' => $submission, |
||
| 29 | 'siteHandle' => $siteHandle, |
||
| 30 | 'messageObject' => $messageObject, |
||
| 31 | ]; |
||
| 32 | |||
| 33 | return $this->renderTemplate('contact-form-extensions/submissions/_show', $variables); |
||
| 34 | } |
||
| 36 |