function RevisionDeleteForm::getEntityFromRouteMatch
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/Form/RevisionDeleteForm.php \Drupal\Core\Entity\Form\RevisionDeleteForm::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.
Overrides EntityFormInterface::getEntityFromRouteMatch
File
-
core/
lib/ Drupal/ Core/ Entity/ Form/ RevisionDeleteForm.php, line 238
Class
- RevisionDeleteForm
- Provides a form for deleting an entity revision.
Namespace
Drupal\Core\Entity\FormCode
public function getEntityFromRouteMatch(RouteMatchInterface $route_match, $entity_type_id) {
return $route_match->getParameter($entity_type_id . '_revision');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.