You are here

protected function EdgeEntityRouteProvider::getDeleteFormRoute in Apigee Edge 8

Gets the delete-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::getDeleteFormRoute

File

src/Entity/EdgeEntityRouteProvider.php, line 60

Class

EdgeEntityRouteProvider
Default route provider for Apigee Edge entities.

Namespace

Drupal\apigee_edge\Entity

Code

protected function getDeleteFormRoute(EntityTypeInterface $entity_type) {
  $route = parent::getDeleteFormRoute($entity_type);
  if ($route) {
    $route
      ->setDefault('_title_callback', EdgeEntityTitleProvider::class . '::deleteTitle');
  }
  return $route;
}