You are here

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

Same name and namespace in other branches
  1. 8 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\Entity\RegistrationTypeInterface $registration_type: The registration type.

Return value

string The page title.

File

src/Controller/RegistrationController.php, line 134

Class

RegistrationController
Controller for registration entities.

Namespace

Drupal\rng\Controller

Code

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