You are here

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

The _title_callback for the event.add route.

Parameters

\Drupal\bat_event\EventTypeInterface $event_type: The current event type.

Return value

string The page title.

1 string reference to 'EventController::addPageTitle'
bat_event.routing.yml in modules/bat_event/bat_event.routing.yml
modules/bat_event/bat_event.routing.yml

File

modules/bat_event/src/Controller/EventController.php, line 116
Contains \Drupal\bat_event\Controller\EventController.

Class

EventController
Returns responses for Type routes.

Namespace

Drupal\bat_event\Controller

Code

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