You are here

public function SubgroupWizardController::addFormTitle in Subgroup (Graph) 1.0.x

The _title_callback for the add group form route.

Parameters

\Drupal\group\Entity\GroupInterface $group: The group to create a group in.

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

Return value

string The page title.

1 string reference to 'SubgroupWizardController::addFormTitle'
ggroup.routing.yml in ./ggroup.routing.yml
ggroup.routing.yml

File

src/Controller/SubgroupWizardController.php, line 160

Class

SubgroupWizardController
Returns responses for 'subgroup' GroupContent routes.

Namespace

Drupal\ggroup\Controller

Code

public function addFormTitle(GroupInterface $group, GroupTypeInterface $group_type) {
  return $this
    ->t('Create %type in %label', [
    '%type' => $group_type
      ->label(),
    '%label' => $group
      ->label(),
  ]);
}