You are here

protected function RestfulEntityBase::getEntitySelf in RESTful 7

Get the "self" url.

Parameters

\EntityMetadataWrapper $wrapper: The wrapped entity.

Return value

string The self URL.

File

plugins/restful/RestfulEntityBase.php, line 1455
Contains RestfulEntityBase.

Class

RestfulEntityBase
An abstract implementation of RestfulEntityInterface.

Code

protected function getEntitySelf(\EntityMetadataWrapper $wrapper) {
  return $this
    ->versionedUrl($wrapper
    ->getIdentifier());
}