diff --git a/config/optional/user.role.authenticated.yml b/config/optional/user.role.authenticated.yml index abdeec2..63d6e2d 100644 --- a/config/optional/user.role.authenticated.yml +++ b/config/optional/user.role.authenticated.yml @@ -37,11 +37,13 @@ permissions: - 'edit client entities' - 'edit equal opps entities' - 'edit event entities' + - 'edit organisation entities' - 'edit staff_member entities' - 'edit volunteer entities' - 'post comments' - 'revert all activity revisions' - 'revert all client revisions' + - 'revert all organisation revisions' - 'revert all staff_member revisions' - 'revert all volunteer revisions' - 'search content' @@ -50,11 +52,14 @@ permissions: - 'use text format basic_html' - 'view all activity revisions' - 'view all client revisions' + - 'view all organisation revisions' - 'view all staff_member revisions' - 'view all volunteer revisions' - 'view published activity entities' - 'view published client entities' - 'view published equal opps entities' - 'view published event entities' + - 'view published organisation entities' + - 'view published organisation relation entities' - 'view published staff_member entities' - 'view published volunteer entities' diff --git a/config/optional/views.view.organisations.yml b/config/optional/views.view.organisations.yml index ec52507..dfa18c6 100644 --- a/config/optional/views.view.organisations.yml +++ b/config/optional/views.view.organisations.yml @@ -143,7 +143,7 @@ display: title_enable: false title: All title_enable: true - title: '{{ arguments.type }}' + title: '{{ arguments.type }}s' default_argument_type: raw default_argument_options: index: 1 @@ -165,7 +165,7 @@ display: validate_options: { } glossary: false limit: 0 - case: none + case: ucfirst path_case: none transform_dash: false break_phrase: false diff --git a/src/Plugin/Derivative/SeeAllOrganisationsMenuLink.php b/src/Plugin/Derivative/SeeAllOrganisationsMenuLink.php index c563a80..ffb349f 100644 --- a/src/Plugin/Derivative/SeeAllOrganisationsMenuLink.php +++ b/src/Plugin/Derivative/SeeAllOrganisationsMenuLink.php @@ -45,7 +45,7 @@ class SeeAllOrganisationsMenuLink extends DeriverBase implements ContainerDerive $organisationTypes = $this->entityTypeManager->getStorage('oc_organisation_type')->loadMultiple(); foreach ($organisationTypes as $id => $organisationType) { $links[$id] = [ - 'title' => $organisationType->label(), + 'title' => \Drupal\opencase\Pluraliser::pluralise($organisationType->label()), 'route_name' => "view.organisations.page_1", 'route_parameters' => ['type' => $organisationType->id()] ] + $base_plugin_definition;