public function EntityFormInterface::getEntityFromRouteMatch in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/EntityFormInterface.php \Drupal\Core\Entity\EntityFormInterface::getEntityFromRouteMatch()
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.
1 method overrides EntityFormInterface::getEntityFromRouteMatch()
- EntityForm::getEntityFromRouteMatch in core/
lib/ Drupal/ Core/ Entity/ EntityForm.php - Determines which entity will be used by this form from a RouteMatch object.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityFormInterface.php, line 71
Class
- EntityFormInterface
- Defines an interface for entity form classes.
Namespace
Drupal\Core\EntityCode
public function getEntityFromRouteMatch(RouteMatchInterface $route_match, $entity_type_id);