getItem(); $menu->addChild($this->translator->trans('edit'), [ 'route' => 'app_source_edit', 'routeParameters' => [ 'id' => $event->getRequest()->getCurrentRequest()->attributes->get('id'), ], 'attributes' => [ 'icon' => 'fas fa-edit', ], ]); $this->generateShowDropdown($menu, $event,'app_source_show'); $menu->addChild($this->translator->trans('node'), [ 'route' => 'app_source_node', 'routeParameters' => [ 'id' => $event->getRequest()->getCurrentRequest()->attributes->get('id'), ], 'attributes' => [ 'icon' => 'fas fa-globe', ], ]); } public static function getSubscribedEvents(): array { return [ SourceMenuEvent::EVENT => 'onSourceMenuConfigure', ]; } }