protected function Routes::createRouteName in Schemata 8
Creates a route name 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 name.
1 call to Routes::createRouteName()
- Routes::routes in src/
Routing/ Routes.php - The route generator.
File
- src/
Routing/ Routes.php, line 128
Class
- Routes
- Class Routes.
Namespace
Drupal\schemata\RoutingCode
protected function createRouteName($entity_type_id, $bundle = NULL) {
return $bundle ? sprintf('schemata.%s:%s', $entity_type_id, $bundle) : sprintf('schemata.%s', $entity_type_id);
}