public function Resource::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.
Overrides ResourceInterface::getPath
4 calls to Resource::getPath()
- Resource::dataProviderFactory in src/
Plugin/ resource/ Resource.php - Data provider factory.
- Resource::getUrl in src/
Plugin/ resource/ Resource.php - Helper method; Get the URL of the resource and query strings.
- Resource::process in src/
Plugin/ resource/ Resource.php - Controller function that passes the data along and executes right action.
- ResourceEntity::dataProviderFactory in src/
Plugin/ resource/ ResourceEntity.php - Data provider factory.
File
- src/
Plugin/ resource/ Resource.php, line 169 - Contains \Drupal\restful\Plugin\resource\Resource.
Class
Namespace
Drupal\restful\Plugin\resourceCode
public function getPath() {
return $this->path;
}