You are here

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

ResourceEntity

Namespace

Drupal\restful\Plugin\resource

Code

public function getEntitySelf(DataInterpreterInterface $interpreter) {
  return $this
    ->versionedUrl($interpreter
    ->getWrapper()
    ->getIdentifier());
}