public function ResourceInterface::getPath in RESTful 7.2
Gets the path of the resource.
The resource path is different from the request path in that it does not contain the RESTful API prefix, the optional version string nor the resource name. All that information is already present in the resource object. The resource path only contains information used to query the data provider.
Return value
string The resource path.
2 methods override ResourceInterface::getPath()
- Resource::getPath in src/
Plugin/ resource/ Resource.php - Gets the path of the resource.
- ResourceDecoratorBase::getPath in src/
Plugin/ resource/ Decorators/ ResourceDecoratorBase.php - Gets the path of the resource.
File
- src/
Plugin/ resource/ ResourceInterface.php, line 99 - Contains \Drupal\restful\Plugin\resource\ResourceInterface.
Class
- ResourceInterface
- Interface ResourceInterface.
Namespace
Drupal\restful\Plugin\resourceCode
public function getPath();