You are here

public function GroupContentMenuController::createForm in Group Content Menu 8

Provides the group content creation form.

Parameters

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

string $plugin_id: The group content enabler to add content with.

Return value

array A group content creation form.

Overrides GroupContentController::createForm

File

src/Controller/GroupContentMenuController.php, line 123

Class

GroupContentMenuController
Returns responses for 'group_content_menu' GroupContent routes.

Namespace

Drupal\group_content_menu\Controller

Code

public function createForm(GroupInterface $group, $plugin_id) {
  if ($limitation = $this
    ->handleOneMenuLimitation($group, $plugin_id)) {
    return $limitation;
  }
  return parent::createForm($group, $plugin_id);
}