You are here

protected function GroupRouteProvider::getDeleteFormRoute in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/Routing/GroupRouteProvider.php \Drupal\group\Entity\Routing\GroupRouteProvider::getDeleteFormRoute()

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/Routing/GroupRouteProvider.php, line 48

Class

GroupRouteProvider
Provides routes for groups.

Namespace

Drupal\group\Entity\Routing

Code

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