public function TypeController::addPageTitle in Booking and Availability Management Tools for Drupal 8
The _title_callback for the type.add route.
Parameters
\Drupal\bat_unit\TypeBundleInterface $type_bundle: The current type bundle.
Return value
string The page title.
1 string reference to 'TypeController::addPageTitle'
- bat_unit.routing.yml in modules/
bat_unit/ bat_unit.routing.yml - modules/bat_unit/bat_unit.routing.yml
File
- modules/
bat_unit/ src/ Controller/ TypeController.php, line 92 - Contains \Drupal\bat_unit\Controller\TypeController.
Class
- TypeController
- Returns responses for Type routes.
Namespace
Drupal\bat_unit\ControllerCode
public function addPageTitle(TypeBundleInterface $type_bundle) {
return $this
->t('Create @name', [
'@name' => $type_bundle
->label(),
]);
}