You are here

private function EckRoutes::createDeleteBundleRoute in Entity Construction Kit (ECK) 8

Creates the delete bundle route.

Parameters

string $entityTypeId: The entity type id.

string $entityTypeLabel: The entity type label.

Return value

\Symfony\Component\Routing\Route The delete bundle route.

1 call to EckRoutes::createDeleteBundleRoute()
EckRoutes::routes in src/Routing/EckRoutes.php

File

src/Routing/EckRoutes.php, line 161

Class

EckRoutes
Defines dynamic routes.

Namespace

Drupal\eck\Routing

Code

private function createDeleteBundleRoute($entityTypeId, $entityTypeLabel) {
  $path = "admin/structure/eck/{$entityTypeId}/bundles/{{$entityTypeId}_type}/delete";
  return $this
    ->createBundleCrudRoute($entityTypeId, $entityTypeLabel, $path, "delete");
}