function Routes::getFileUploadRouteName
Same name in other branches
- 8.9.x core/modules/jsonapi/src/Routing/Routes.php \Drupal\jsonapi\Routing\Routes::getFileUploadRouteName()
- 10 core/modules/jsonapi/src/Routing/Routes.php \Drupal\jsonapi\Routing\Routes::getFileUploadRouteName()
- 11.x core/modules/jsonapi/src/Routing/Routes.php \Drupal\jsonapi\Routing\Routes::getFileUploadRouteName()
Get a unique route name for the file upload resource type and route type.
Parameters
\Drupal\jsonapi\ResourceType\ResourceType $resource_type: The resource type for which the route collection should be created.
string $route_type: The route type. E.g. 'individual' or 'collection'.
Return value
string The generated route name.
1 call to Routes::getFileUploadRouteName()
- Routes::getFileUploadRoutesForResourceType in core/
modules/ jsonapi/ src/ Routing/ Routes.php - Gets the file upload route collection for the given resource type.
File
-
core/
modules/ jsonapi/ src/ Routing/ Routes.php, line 420
Class
- Routes
- Defines dynamic routes.
Namespace
Drupal\jsonapi\RoutingCode
protected static function getFileUploadRouteName(ResourceType $resource_type, $route_type) {
return sprintf('jsonapi.%s.%s.%s', $resource_type->getTypeName(), 'file_upload', $route_type);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.