public function ResourceInterface::routes

Returns a collection of routes with URL path information for the resource.

This method determines where a resource is reachable, what path replacements are used, the required HTTP method for the operation etc.

Return value

\Symfony\Component\Routing\RouteCollection A collection of routes that should be registered for this resource.

1 method overrides ResourceInterface::routes()
ResourceBase::routes in drupal/core/modules/rest/lib/Drupal/rest/Plugin/ResourceBase.php
Implements ResourceInterface::routes().

File

drupal/core/modules/rest/lib/Drupal/rest/Plugin/ResourceInterface.php, line 26
Contains \Drupal\rest\Plugin\ResourceInterface.

Class

ResourceInterface
Specifies the publicly available methods of a resource plugin.

Namespace

Drupal\rest\Plugin

Code

public function routes();