You are here

public function GroupMembershipController::joinTitle in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Controller/GroupMembershipController.php \Drupal\group\Controller\GroupMembershipController::joinTitle()

The _title_callback for the join form route.

Parameters

\Drupal\group\Entity\GroupInterface $group: The group to join.

Return value

string The page title.

1 string reference to 'GroupMembershipController::joinTitle'
group.routing.yml in ./group.routing.yml
group.routing.yml

File

src/Controller/GroupMembershipController.php, line 89

Class

GroupMembershipController
Provides group membership route controllers.

Namespace

Drupal\group\Controller

Code

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