Pluralising entity names in "See all" menu

This commit is contained in:
naomi 2022-05-11 13:47:37 +01:00
parent 8354e3b8cf
commit eb9bd789c8

View File

@ -45,7 +45,7 @@ class SeeAllActorsMenuLink extends DeriverBase implements ContainerDeriverInterf
$actorTypes = $this->entityTypeManager->getStorage('oc_actor_type')->loadMultiple();
foreach ($actorTypes as $id => $actorType) {
$links[$id] = [
'title' => $actorType->label(),
'title' => \Drupal\opencase\Pluraliser::pluralise($actorType->label()),
'route_name' => "view.actors.page_1",
'route_parameters' => ['type' => $actorType->id()]
] + $base_plugin_definition;