You are here

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

2 calls to DataProvider::canonicalPath()
DataProvider::getCacheFragments in src/Plugin/resource/DataProvider/DataProvider.php
Gets the entity context.
DataProviderDbQuery::getCacheFragments in src/Plugin/resource/DataProvider/DataProviderDbQuery.php
Gets the entity context.
1 method overrides DataProvider::canonicalPath()
DataProviderEntity::canonicalPath in src/Plugin/resource/DataProvider/DataProviderEntity.php
Generates the canonical path for a given path.

File

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

Class

DataProvider

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public function canonicalPath($path) {

  // Assume that there is no alias.
  return $path;
}