We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86e9dba commit 8eb7a37Copy full SHA for 8eb7a37
docs/basics/schemas.md
@@ -392,9 +392,9 @@ class Schema extends SchemaProvider
392
{
393
// ...
394
395
- public function getResourceLinks($resource): ?array
+ public function getResourceLinks($resource): iterable
396
397
- return null;
+ return ['self' => false];
398
}
399
400
```
src/Schema/Schema.php
@@ -123,6 +123,10 @@ public function getLinks($resource): iterable
123
$links[LinkInterface::SELF] = $this->getSelfLink($resource);
124
125
126
+ if ($self === false) {
127
+ unset($links[LinkInterface::SELF]);
128
+ }
129
+
130
return $links;
131
132
0 commit comments