EntityFormInterface::getEntityFromRouteMatch

public EntityFormInterface::getEntityFromRouteMatch(RouteMatchInterface $route_match, $entity_type_id)

Determines which entity will be used by this form from a RouteMatch object.

Parameters

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

string $entity_type_id: The entity type identifier.

Return value

\Drupal\Core\Entity\EntityInterface The entity object as determined from the passed-in route match.

File

core/lib/Drupal/Core/Entity/EntityFormInterface.php, line 71

Class

EntityFormInterface
Defines an interface for entity form classes.

Namespace

Drupal\Core\Entity

Code

public function getEntityFromRouteMatch(RouteMatchInterface $route_match, $entity_type_id);
doc_Drupal
2016-10-29 09:06:26
Comments
Leave a Comment

Please login to continue.