You are here

public function GroupContentController::collectionTitle in Group 8

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

The _title_callback for the entity.group_content.collection route.

@todo Revisit when 8.2.0 is released, https://www.drupal.org/node/2767853.

Parameters

\Drupal\group\Entity\GroupInterface $group: The group to add the group content to.

Return value

string The page title.

File

src/Entity/Controller/GroupContentController.php, line 288

Class

GroupContentController
Returns responses for GroupContent routes.

Namespace

Drupal\group\Entity\Controller

Code

public function collectionTitle(GroupInterface $group) {
  return $this
    ->t('All entities for @group', [
    '@group' => $group
      ->label(),
  ]);
}