public function RegistrationController::addPageTitle in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 8 src/Controller/RegistrationController.php \Drupal\rng\Controller\RegistrationController::addPageTitle()
- 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\ControllerCode
public function addPageTitle(RegistrationTypeInterface $registration_type) {
return $this
->t('Create @label', [
'@label' => $registration_type
->label(),
]);
}