You are here

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

Creates the add bundle route.

Parameters

string $entityTypeId: The entity type id.

string $entityTypeLabel: The entity type label.

Return value

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

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

File

src/Routing/EckRoutes.php, line 105

Class

EckRoutes
Defines dynamic routes.

Namespace

Drupal\eck\Routing

Code

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