You are here

protected function AdminHtmlRouteProvider::getEditFormRoute in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/Routing/AdminHtmlRouteProvider.php \Drupal\Core\Entity\Routing\AdminHtmlRouteProvider::getEditFormRoute()

Gets the edit-form route.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.

Return value

\Symfony\Component\Routing\Route|null The generated route, if available.

Overrides DefaultHtmlRouteProvider::getEditFormRoute

1 call to AdminHtmlRouteProvider::getEditFormRoute()
FeedHtmlRouteProvider::getEditFormRoute in core/modules/aggregator/src/FeedHtmlRouteProvider.php
Gets the edit-form route.
1 method overrides AdminHtmlRouteProvider::getEditFormRoute()
FeedHtmlRouteProvider::getEditFormRoute in core/modules/aggregator/src/FeedHtmlRouteProvider.php
Gets the edit-form route.

File

core/lib/Drupal/Core/Entity/Routing/AdminHtmlRouteProvider.php, line 27
Contains \Drupal\Core\Entity\Routing\AdminHtmlRouteProvider.

Class

AdminHtmlRouteProvider
Provides HTML routes for entities with administrative edit/delete pages.

Namespace

Drupal\Core\Entity\Routing

Code

protected function getEditFormRoute(EntityTypeInterface $entity_type) {
  if ($route = parent::getEditFormRoute($entity_type)) {
    $route
      ->setOption('_admin_route', TRUE);
    return $route;
  }
}