You are here

public function CacheDecoratedDataProvider::canonicalPath in RESTful 7.2

Generates the canonical path for a given path.

Parameters

string $path: The aliased path.

Return value

string The canonical path.

Overrides DataProviderInterface::canonicalPath

File

src/Plugin/resource/DataProvider/CacheDecoratedDataProvider.php, line 240
Contains \Drupal\restful\Plugin\resource\DataProvider\CacheDecoratedDataProvider.

Class

CacheDecoratedDataProvider
Class CacheDecoratedDataProvider.

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

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