public function ServicesContext::getCanonicalPath in Services 7.3
Retrieve canonical path.
Return value
string
Overrides ServicesContextInterface::getCanonicalPath
File
- servers/
rest_server/ includes/ ServicesContext.inc, line 65
Class
Code
public function getCanonicalPath() {
if (!isset($this->data['canonical_path'])) {
$endpoint_path = $this
->getEndpointPath();
$endpoint_path_len = drupal_strlen($endpoint_path . '/');
$this->data['canonical_path'] = drupal_substr($this->data['get']['q'], $endpoint_path_len);
}
return $this->data['canonical_path'];
}