diff --git a/opencase.links.menu.yml b/opencase.links.menu.yml index 43da254..ebc2a01 100644 --- a/opencase.links.menu.yml +++ b/opencase.links.menu.yml @@ -8,11 +8,6 @@ opencase.see_all_people_links: deriver: Drupal\opencase\Plugin\Derivative\SeeAllActorsMenuLink menu_name: opencase parent: opencase.see_all -opencase.see_all_organisations_links: - class: Drupal\opencase\Plugin\Menu\SeeAllOrganisationsMenuLink - deriver: Drupal\opencase\Plugin\Derivative\SeeAllOrganisationsMenuLink - menu_name: opencase - parent: opencase.see_all opencase.opencase_add_new_things_menu: title: 'Add new...' menu_name: opencase diff --git a/src/Plugin/Derivative/SeeAllOrganisationsMenuLink.php b/src/Plugin/Derivative/SeeAllOrganisationsMenuLink.php deleted file mode 100644 index 0664f4f..0000000 --- a/src/Plugin/Derivative/SeeAllOrganisationsMenuLink.php +++ /dev/null @@ -1,55 +0,0 @@ -entityTypeManager = $entity_type_manager; - } - - /** -   * {@inheritdoc} -   */ - public static function create(ContainerInterface $container, $base_plugin_id) { - return new static( - $base_plugin_id, - $container->get('entity_type.manager') - ); - } - /** -   * {@inheritdoc} -   */ - public function getDerivativeDefinitions($base_plugin_definition) { - $links = []; - $organisationTypes = $this->entityTypeManager->getStorage('oc_organisation_type')->loadMultiple(); - foreach ($organisationTypes as $id => $organisationType) { - $links[$id] = [ - 'title' => $organisationType->label().'s', - 'route_name' => "view.all_organisations_of_a_type.page_1", - 'route_parameters' => ['organisation_type' => $organisationType->id()] - ] + $base_plugin_definition; - } - return $links; - } -} diff --git a/src/Plugin/Menu/SeeAllOrganisationsMenuLink.php b/src/Plugin/Menu/SeeAllOrganisationsMenuLink.php deleted file mode 100644 index 02849a4..0000000 --- a/src/Plugin/Menu/SeeAllOrganisationsMenuLink.php +++ /dev/null @@ -1,6 +0,0 @@ -