| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | class ShowEntityLogController extends ShowNotificationController |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var EntityLogNotification |
||
| 27 | */ |
||
| 28 | protected $notification; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @inheritdoc |
||
| 32 | */ |
||
| 33 | public function showAction() |
||
| 34 | { |
||
| 35 | parent::showAction(); |
||
| 36 | |||
| 37 | $this->view->assign('preview', $this->getPreview()); |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Returns a preview of the shown log notification. |
||
| 42 | * |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | protected function getPreview(): string |
||
| 46 | { |
||
| 47 | /** @var EntityLogMessageBuilder $entityLogMessageBuilder */ |
||
| 48 | $entityLogMessageBuilder = $this->objectManager->get(EntityLogMessageBuilder::class, $this->getPreviewPayload()); |
||
| 49 | |||
| 50 | return $entityLogMessageBuilder->getMessage(); |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | public function getNotificationDefinitionIdentifier(): string |
||
| 59 | } |
||
| 60 | } |
||
| 61 |