protected function Routes::getRoutePath in Schemata 8
Creates a route path for a entity type and bundle.
Parameters
string $entity_type_id: The entity type id.
string $bundle: The bundle name.
Return value
string The route path.
1 call to Routes::getRoutePath()
- Routes::createRoute in src/
Routing/ Routes.php - Creates a route for a entity type and bundle.
File
- src/
Routing/ Routes.php, line 143
Class
- Routes
- Class Routes.
Namespace
Drupal\schemata\RoutingCode
protected function getRoutePath($entity_type_id, $bundle = NULL) {
$path = $bundle ? sprintf('/schemata/%s/%s', $entity_type_id, $bundle) : sprintf('/schemata/%s', $entity_type_id);
return $path;
}