You are here

public function ResourceDecoratorBase::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

1 method overrides ResourceDecoratorBase::getPath()
CacheDecoratedResource::getPath in src/Plugin/resource/Decorators/CacheDecoratedResource.php
Gets the path of the resource.

File

src/Plugin/resource/Decorators/ResourceDecoratorBase.php, line 107
Contains \Drupal\restful\Plugin\resource\Decorators\ResourceDecoratorBase.

Class

ResourceDecoratorBase
Class ResourceDecoratorBase.

Namespace

Drupal\restful\Plugin\resource\Decorators

Code

public function getPath() {
  return $this->subject
    ->getPath();
}