Implemented view for node

This commit is contained in:
Kevin Frantz
2018-09-20 16:03:00 +02:00
parent 1915c77d8c
commit ee1cef71b7
7 changed files with 117 additions and 1 deletions

View File

@@ -39,6 +39,15 @@ class SourceMenuSubscriber implements EventSubscriberInterface
],
]);
$this->generateSourceFormatDropdown($menu, $event);
$menu->addChild($this->translator->trans('node'), [
'route' => 'app_source_node',
'routeParameters' => [
'id' => $event->getRequest()->getCurrentRequest()->attributes->get('id'),
],
'attributes' => [
'icon' => 'fas fa-globe',
],
]);
}
private function generateSourceFormatDropdown(ItemInterface $menu, SourceMenuEvent $event): void