public function GroupContentController::collectionTitle in Group 2.0.x
Same name and namespace in other branches
- 8 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 286
Class
- GroupContentController
- Returns responses for GroupContent routes.
Namespace
Drupal\group\Entity\ControllerCode
public function collectionTitle(GroupInterface $group) {
return $this
->t('All entities for @group', [
'@group' => $group
->label(),
]);
}