You are here

abstract public function AbstractEntityFormModesFactory::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

2 methods override AbstractEntityFormModesFactory::addPage()
ComplexEntityFormModes::addPage in src/ComplexEntityFormModes.php
SimpleEntityFormModes::addPage in src/SimpleEntityFormModes.php
In simple entities without bundles we don't generate add_page routes.

File

src/AbstractEntityFormModesFactory.php, line 121

Class

AbstractEntityFormModesFactory
Abstract Factory to generate object used by routing of Form Mode Manager.

Namespace

Drupal\form_mode_manager

Code

public abstract function addPage(RouteMatchInterface $route_match);