Skip to content

Commit 9c26e5b

Browse files
committed
If multirepo is enabled search for the document in other repos
1 parent 8f2198d commit 9c26e5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Model/MultirepoAlternateLinks.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ public function getAlternateLinks(
2828
$configuration = $this->configuration;;
2929
$storeManager = $this->storeManager;
3030

31+
if (! $configuration->getMultiRepoEnabled($storeManager->getStore())) {
32+
return $mappedDocumentsToLanguage;
33+
}
34+
3135
foreach ($storeManager->getStores() as $store) {
3236
if (! $configuration->getApiEnabled($store)) {
3337
continue;

0 commit comments

Comments
 (0)