You are here

public function GroupRequestController::getTitleApproveRequest in Open Social 10.0.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_group/modules/social_group_request/src/Controller/GroupRequestController.php \Drupal\social_group_request\Controller\GroupRequestController::getTitleApproveRequest()
  2. 10.3.x modules/social_features/social_group/modules/social_group_request/src/Controller/GroupRequestController.php \Drupal\social_group_request\Controller\GroupRequestController::getTitleApproveRequest()
  3. 10.1.x modules/social_features/social_group/modules/social_group_request/src/Controller/GroupRequestController.php \Drupal\social_group_request\Controller\GroupRequestController::getTitleApproveRequest()
  4. 10.2.x modules/social_features/social_group/modules/social_group_request/src/Controller/GroupRequestController.php \Drupal\social_group_request\Controller\GroupRequestController::getTitleApproveRequest()

Return the title for approve request confirmation page.

File

modules/social_features/social_group/modules/social_group_request/src/Controller/GroupRequestController.php, line 90

Class

GroupRequestController
Returns responses for Group request routes.

Namespace

Drupal\social_group_request\Controller

Code

public function getTitleApproveRequest(GroupInterface $group, GroupContentInterface $group_content) {
  return $this
    ->t('Approve membership request for the group @group_title', [
    '@group_title' => $group
      ->label(),
  ]);
}