You are here

public function EnrollRequestDialogController::enrollTitle in Open Social 8.9

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_event/src/Controller/EnrollRequestDialogController.php \Drupal\social_event\Controller\EnrollRequestDialogController::enrollTitle()
  2. 10.0.x modules/social_features/social_event/src/Controller/EnrollRequestDialogController.php \Drupal\social_event\Controller\EnrollRequestDialogController::enrollTitle()
  3. 10.1.x modules/social_features/social_event/src/Controller/EnrollRequestDialogController.php \Drupal\social_event\Controller\EnrollRequestDialogController::enrollTitle()
  4. 10.2.x modules/social_features/social_event/src/Controller/EnrollRequestDialogController.php \Drupal\social_event\Controller\EnrollRequestDialogController::enrollTitle()

The _title_callback for the event enroll dialog route.

Parameters

\Drupal\node\NodeInterface $node: Node.

Return value

string The page title.

1 string reference to 'EnrollRequestDialogController::enrollTitle'
social_event.routing.yml in modules/social_features/social_event/social_event.routing.yml
modules/social_features/social_event/social_event.routing.yml

File

modules/social_features/social_event/src/Controller/EnrollRequestDialogController.php, line 110

Class

EnrollRequestDialogController
Contains methods for the modal form when requesting to enroll in an event.

Namespace

Drupal\social_event\Controller

Code

public function enrollTitle(NodeInterface $node) {
  return $this
    ->t('Request enrollment in @label Event', [
    '@label' => $node
      ->label(),
  ]);
}