|
@@ 73-80 (lines=8) @@
|
| 70 |
|
/** |
| 71 |
|
* @inheritdoc |
| 72 |
|
*/ |
| 73 |
|
public function getRelationshipSelfLink($resource, string $name): LinkInterface |
| 74 |
|
{ |
| 75 |
|
// Feel free to override this method to change default URL or add meta |
| 76 |
|
|
| 77 |
|
$url = $this->getSelfSubUrl($resource) . '/' . DocumentInterface::KEYWORD_RELATIONSHIPS . '/' . $name; |
| 78 |
|
|
| 79 |
|
return $this->factory->createLink(true, $url, false); |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
/** |
| 83 |
|
* @inheritdoc |
|
@@ 85-92 (lines=8) @@
|
| 82 |
|
/** |
| 83 |
|
* @inheritdoc |
| 84 |
|
*/ |
| 85 |
|
public function getRelationshipRelatedLink($resource, string $name): LinkInterface |
| 86 |
|
{ |
| 87 |
|
// Feel free to override this method to change default URL or add meta |
| 88 |
|
|
| 89 |
|
$url = $this->getSelfSubUrl($resource) . '/' . $name; |
| 90 |
|
|
| 91 |
|
return $this->factory->createLink(true, $url, false); |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
/** |
| 95 |
|
* @inheritdoc |