Skip to content
Snippets Groups Projects
Commit b8fdd6ac authored by Matt Glaman's avatar Matt Glaman
Browse files

Issue #3200821 by mglaman, Pooja Ganjage: Document ResourceBase::getRouteResourceTypes()

parent c0abb9a8
No related branches found
No related tags found
1 merge request!8Document getRouteResourceTypes
Pipeline #136343 passed with warnings
......@@ -111,7 +111,18 @@ abstract class ResourceBase {
}
/**
* {@inheritdoc}
* Gets the resource types for a route.
*
* Resource types are defined on routes in the `_jsonapi_resource_types`
* route's defaults.
*
* @param \Symfony\Component\Routing\Route $route
* The route.
* @param string $route_name
* The route name.
*
* @return array
* The resource types for the route.
*/
public function getRouteResourceTypes(Route $route, string $route_name): array {
return array_map(function ($resource_type_name) use ($route_name) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment