public function ResourceEntity::getEntitySelf in RESTful 7.2
Get the "self" url.
Parameters
DataInterpreterInterface $interpreter: The wrapped entity.
Return value
string The self URL.
File
- src/
Plugin/ resource/ ResourceEntity.php, line 171 - Contains \Drupal\restful\Plugin\resource\ResourceEntity.
Class
Namespace
Drupal\restful\Plugin\resourceCode
public function getEntitySelf(DataInterpreterInterface $interpreter) {
return $this
->versionedUrl($interpreter
->getWrapper()
->getIdentifier());
}