commented out the yml line untill it works

This commit is contained in:
Nick 2022-04-17 12:04:48 +02:00
parent 489f4c0c94
commit 17406061f9
2 changed files with 6 additions and 6 deletions

View File

@ -13,11 +13,11 @@ opencase.see_all_organisations_links:
deriver: Drupal\opencase\Plugin\Derivative\SeeAllOrganisationsMenuLink
menu_name: opencase
parent: opencase.see_all
opencase.see_all_events_links:
class: Drupal\opencase\Plugin\Menu\SeeAllEventsMenuLink
deriver: Drupal\opencase\Plugin\Derivative\SeeAllEventsMenuLink
menu_name: opencase
parent: opencase.see_all
#opencase.see_all_events_links: //@TODO findout why "view.events.page_1" does not work
# class: Drupal\opencase\Plugin\Menu\SeeAllEventsMenuLink
# deriver: Drupal\opencase\Plugin\Derivative\SeeAllEventsMenuLink
# menu_name: opencase
# parent: opencase.see_all
opencase.opencase_add_new_things_menu:
title: 'Add new...'
menu_name: opencase

View File

@ -51,7 +51,7 @@ class SeeAllEventsMenuLink extends DeriverBase implements ContainerDeriverInterf
foreach ($eventTypes as $id => $eventType) {
$links[$id] = [
'title' => $eventType->label(),
'route_name' => "view.actors.page_1", //@TODO findout why "view.events.page_1" does not work
'route_name' => "view.events.page_1",
'route_parameters' => ['type' => $eventType->id()]
] + $base_plugin_definition;
}