You are here

public function BookingController::addPageTitle in Booking and Availability Management Tools for Drupal 8

The _title_callback for the type.add route.

Parameters

\Drupal\bat_booking\BookingBundleInterface $booking_bundle: The current booking bundle.

Return value

string The page title.

1 string reference to 'BookingController::addPageTitle'
bat_booking.routing.yml in modules/bat_booking/bat_booking.routing.yml
modules/bat_booking/bat_booking.routing.yml

File

modules/bat_booking/src/Controller/BookingController.php, line 89
Contains \Drupal\bat_booking\Controller\BookingController.

Class

BookingController
Returns responses for Type routes.

Namespace

Drupal\bat_booking\Controller

Code

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