You are here

abstract public function AbstractEntityFormModesFactory::getEntityFromRouteMatch in Form mode manager 8.2

Retrieves entity from route match.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.

1 call to AbstractEntityFormModesFactory::getEntityFromRouteMatch()
AbstractEntityFormModesFactory::checkAccess in src/AbstractEntityFormModesFactory.php
2 methods override AbstractEntityFormModesFactory::getEntityFromRouteMatch()
ComplexEntityFormModes::getEntityFromRouteMatch in src/ComplexEntityFormModes.php
SimpleEntityFormModes::getEntityFromRouteMatch in src/SimpleEntityFormModes.php

File

src/AbstractEntityFormModesFactory.php, line 145

Class

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

Namespace

Drupal\form_mode_manager

Code

public abstract function getEntityFromRouteMatch(RouteMatchInterface $route_match);