Neomerx\JsonApi\Document\Presenters\ElementPresenter::getLinkRepresentation PHP Method

getLinkRepresentation() private method

private getLinkRepresentation ( string | null $prefix = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $link = null ) : array | null | string
$prefix string | null
$link Neomerx\JsonApi\Contracts\Document\LinkInterface
return array | null | string
    private function getLinkRepresentation($prefix = null, LinkInterface $link = null)
    {
        return $link === null ? null : $this->getUrlRepresentation($link->isTreatAsHref() === true ? $link->getSubHref() : $prefix . $link->getSubHref(), $link->getMeta());
    }