You are here

public function FormModeManagerEntityController::addPage in Form mode manager 8.2

Displays add content links for available entity types.

Redirects to entity/add/[bundle] if only one content type is available.

Overrides EntityFormModeManagerInterface::addPage

File

src/Controller/FormModeManagerEntityController.php, line 134

Class

FormModeManagerEntityController
Generic Controller for entity using form mode manager routing.

Namespace

Drupal\form_mode_manager\Controller

Code

public function addPage(RouteMatchInterface $route_match) {
  return $this
    ->getEntityControllerResponse(__FUNCTION__, $route_match);
}