function RevisionRevertForm::getEntityFromRouteMatch
Same name in other branches
- 10 core/lib/Drupal/Core/Entity/Form/RevisionRevertForm.php \Drupal\Core\Entity\Form\RevisionRevertForm::getEntityFromRouteMatch()
Overrides EntityFormInterface::getEntityFromRouteMatch
File
-
core/
lib/ Drupal/ Core/ Entity/ Form/ RevisionRevertForm.php, line 286
Class
- RevisionRevertForm
- Provides a form for reverting 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.