| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function handle(GameControllerInterface $game): void |
||
| 24 | { |
||
| 25 | $game->appendNavigationPart( |
||
| 26 | sprintf( |
||
| 27 | '/npc/?%s=1', |
||
| 28 | static::VIEW_IDENTIFIER |
||
| 29 | ), |
||
| 30 | _('NPC Log') |
||
| 31 | ); |
||
| 32 | |||
| 33 | $logs = $this->npclogRepository->findBy([], ['id' => 'DESC'], 100); |
||
| 34 | |||
| 35 | $game->setTemplateFile('html/npc/npclog.twig'); |
||
| 36 | $game->setPageTitle(_('NPC Log')); |
||
| 37 | $game->setTemplateVar( |
||
| 38 | 'LIST', |
||
| 39 | $logs |
||
| 40 | ); |
||
| 42 | } |