You are here

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

1 call to CacheDecoratedResource::getPath()
CacheDecoratedResource::process in src/Plugin/resource/Decorators/CacheDecoratedResource.php
Controller function that passes the data along and executes right action.

File

src/Plugin/resource/Decorators/CacheDecoratedResource.php, line 127
Contains \Drupal\restful\Plugin\resource\Decorators\CacheDecoratedResource

Class

CacheDecoratedResource

Namespace

Drupal\restful\Plugin\resource\Decorators

Code

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