function RevisionDeleteForm::getEntityFromRouteMatch

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Entity/Form/RevisionDeleteForm.php \Drupal\Core\Entity\Form\RevisionDeleteForm::getEntityFromRouteMatch()

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\Form

Code

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.