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