You are here

public function GroupController::addFormTitle in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/Controller/GroupController.php \Drupal\group\Entity\Controller\GroupController::addFormTitle()

The _title_callback for the group.add route.

Parameters

\Drupal\group\Entity\GroupTypeInterface $group_type: The type of group to create.

Return value

string The page title.

File

src/Entity/Controller/GroupController.php, line 136

Class

GroupController
Returns responses for Group routes.

Namespace

Drupal\group\Entity\Controller

Code

public function addFormTitle(GroupTypeInterface $group_type) {
  return $this
    ->t('Add @group_type_label', [
    '@group_type_label' => $group_type
      ->label(),
  ]);
}