You are here

public function GroupRequestController::getTitleRejectRequest in Open Social 10.3.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::getTitleRejectRequest()
  2. 10.0.x modules/social_features/social_group/modules/social_group_request/src/Controller/GroupRequestController.php \Drupal\social_group_request\Controller\GroupRequestController::getTitleRejectRequest()
  3. 10.1.x modules/social_features/social_group/modules/social_group_request/src/Controller/GroupRequestController.php \Drupal\social_group_request\Controller\GroupRequestController::getTitleRejectRequest()
  4. 10.2.x modules/social_features/social_group/modules/social_group_request/src/Controller/GroupRequestController.php \Drupal\social_group_request\Controller\GroupRequestController::getTitleRejectRequest()

Return the title for reject request confirmation page.

File

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

Class

GroupRequestController
Returns responses for Group request routes.

Namespace

Drupal\social_group_request\Controller

Code

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