Get resource URL link.
public getSelfSubLink ( object $resource ) : Neomerx\JsonApi\Contracts\Document\LinkInterface | ||
$resource | object | |
return | Neomerx\JsonApi\Contracts\Document\LinkInterface |
/** * @inheritdoc */ public function getSelfSubLink() { if ($this->isSelfSubLinkSet === false) { $this->selfSubLink = $this->schema->getSelfSubLink($this->resource); $this->isSelfSubLinkSet = true; } return $this->selfSubLink; }
/** * @inheritdoc */ public function getSelfSubLink($resource) { return $this->schema->getSelfSubLink($resource); }