public function Resource::setPath in RESTful 7.2
Sets the path of the resource.
Parameters
string $path: The path without the RESTful prefix or the version string.
Overrides ResourceInterface::setPath
3 calls to Resource::setPath()
- Resource::doDelete in src/
Plugin/ resource/ Resource.php - Shorthand method to perform a quick DELETE request.
- Resource::doGet in src/
Plugin/ resource/ Resource.php - Shorthand method to perform a quick GET request.
- Resource::doWrite in src/
Plugin/ resource/ Resource.php
File
- src/
Plugin/ resource/ Resource.php, line 176 - Contains \Drupal\restful\Plugin\resource\Resource.
Class
Namespace
Drupal\restful\Plugin\resourceCode
public function setPath($path) {
$this->path = $path;
$this
->getDataProvider()
->setResourcePath($path);
}