You are here

protected function GroupContentController::addPageFormRoute in Group 2.0.x

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

Returns the route name of the form the add page should link to.

Parameters

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

bool $create_mode: Whether the target entity still needs to be created.

Return value

string The route name.

See also

::addPage()

1 call to GroupContentController::addPageFormRoute()
GroupContentController::addPage in src/Entity/Controller/GroupContentController.php
Provides the group content creation overview page.

File

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

Class

GroupContentController
Returns responses for GroupContent routes.

Namespace

Drupal\group\Entity\Controller

Code

protected function addPageFormRoute(GroupInterface $group, $create_mode) {
  return $create_mode ? 'entity.group_content.create_form' : 'entity.group_content.add_form';
}