You are here

public function GroupMenuController::groupContentOverviewTitle in Group Menu 8

Provides the group menu overview page title.

Parameters

\Drupal\group\Entity\GroupInterface $group: The group to show the group menu content for.

Return value

string The page title for the group menu overview page.

1 string reference to 'GroupMenuController::groupContentOverviewTitle'
groupmenu.routing.yml in ./groupmenu.routing.yml
groupmenu.routing.yml

File

src/Controller/GroupMenuController.php, line 82

Class

GroupMenuController
Returns responses for 'group_menu' GroupContent routes.

Namespace

Drupal\groupmenu\Controller

Code

public function groupContentOverviewTitle(GroupInterface $group) {
  return $this
    ->t("%label menus", [
    '%label' => $group
      ->label(),
  ]);
}