You are here

protected function GroupContentController::addPageBundleMessage in Group 2.0.x

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

Returns the 'add_bundle_message' string for the add page.

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|false The translated string or FALSE if no string should be set.

See also

::addPage()

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

File

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

Class

GroupContentController
Returns responses for GroupContent routes.

Namespace

Drupal\group\Entity\Controller

Code

protected function addPageBundleMessage(GroupInterface $group, $create_mode) {

  // We do not set the 'add_bundle_message' variable because we deny access to
  // the page if no bundle is available. This method exists so that modules
  // that extend this controller may specify a message should they decide to
  // allow access to their page even if it has no bundles.
  return FALSE;
}