You are here

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

The _title_callback for the event.add route.

Parameters

\Drupal\bat_event_series\EventSeriesTypeInterface $event_series_type: The current event series type.

Return value

string The page title.

1 string reference to 'EventSeriesController::addPageTitle'
bat_event_series.routing.yml in modules/bat_event_series/bat_event_series.routing.yml
modules/bat_event_series/bat_event_series.routing.yml

File

modules/bat_event_series/src/Controller/EventSeriesController.php, line 95
Contains \Drupal\bat_event_series\Controller\EventSeriesController.

Class

EventSeriesController
Returns responses for Type routes.

Namespace

Drupal\bat_event_series\Controller

Code

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