function EntityFormInterface::getEntityFromRouteMatch
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityFormInterface.php \Drupal\Core\Entity\EntityFormInterface::getEntityFromRouteMatch()
- 8.9.x core/lib/Drupal/Core/Entity/EntityFormInterface.php \Drupal\Core\Entity\EntityFormInterface::getEntityFromRouteMatch()
- 11.x 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.
3 methods override 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.
- RevisionDeleteForm::getEntityFromRouteMatch in core/
lib/ Drupal/ Core/ Entity/ Form/ RevisionDeleteForm.php - Determines which entity will be used by this form from a RouteMatch object.
- RevisionRevertForm::getEntityFromRouteMatch in core/
lib/ Drupal/ Core/ Entity/ Form/ RevisionRevertForm.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);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.