You are here

public function RegistrationController::addPageTitle in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/Controller/RegistrationController.php \Drupal\rng\Controller\RegistrationController::addPageTitle()
  2. 3.x src/Controller/RegistrationController.php \Drupal\rng\Controller\RegistrationController::addPageTitle()

Title callback for registration.event.*.register.

Parameters

\Drupal\rng\RegistrationTypeInterface: The registration type.

Return value

string The page title.

File

src/Controller/RegistrationController.php, line 133

Class

RegistrationController
Controller for registration entities.

Namespace

Drupal\rng\Controller

Code

public function addPageTitle(RegistrationTypeInterface $registration_type) {
  return $this
    ->t('Create @label', array(
    '@label' => $registration_type
      ->label(),
  ));
}