You are here

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

The _title_callback for the type_group.add route.

Parameters

\Drupal\bat\TypeGroupBundleInterface $type_group_bundle: The current type group bundle.

Return value

string The page title.

1 string reference to 'TypeGroupController::addPageTitle'
bat.routing.yml in ./bat.routing.yml
bat.routing.yml

File

src/Controller/TypeGroupController.php, line 93
Contains \Drupal\bat\Controller\TypeGroupController.

Class

TypeGroupController
Returns responses for Type Group routes.

Namespace

Drupal\bat\Controller

Code

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