We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dde6c54 commit d595ac2Copy full SHA for d595ac2
src/Api/LinkResolverInterface.php
@@ -22,4 +22,17 @@ interface LinkResolverInterface
22
* @return ResourceInterface
23
*/
24
public function resolveLink(Link $link, array $parameters = []): ResourceInterface;
25
+
26
+ /**
27
+ * Resolves an array of links.
28
+ * A method implementing this may apply some optimizations
29
+ * to reduce the amount of necessary API calls, or simply forward this
30
+ * to the "resolveLink" method.
31
+ *
32
+ * @param Link[] $links
33
+ * @param string|null $locale
34
35
+ * @return ResourceInterface[]
36
+ */
37
+ public function resolveLinkCollection(array $links, string $locale = \null): array;
38
}
0 commit comments