protected AdminHtmlRouteProvider::getEditFormRoute(EntityTypeInterface $entity_type)
Gets the edit-form route.
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.
\Symfony\Component\Routing\Route|null The generated route, if available.
Overrides DefaultHtmlRouteProvider::getEditFormRoute
protected function getEditFormRoute(EntityTypeInterface $entity_type) { if ($route = parent::getEditFormRoute($entity_type)) { $route->setOption('_admin_route', TRUE); return $route; } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Routing!AdminHtmlRouteProvider.php/function/AdminHtmlRouteProvider::getEditFormRoute/8.1.x