| @@ 991-1000 (lines=10) @@ | ||
| 988 | $content->getVersionInfo()->getContentInfo() |
|
| 989 | ); |
|
| 990 | foreach ($locations as $location) { |
|
| 991 | foreach ($urlAliasNames as $languageCode => $name) { |
|
| 992 | $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
|
| 993 | $location->id, |
|
| 994 | $location->parentLocationId, |
|
| 995 | $name, |
|
| 996 | $languageCode, |
|
| 997 | $content->contentInfo->alwaysAvailable, |
|
| 998 | $updatePathIdentificationString ? $languageCode === $content->contentInfo->mainLanguageCode : false |
|
| 999 | ); |
|
| 1000 | } |
|
| 1001 | // archive URL aliases of Translations that got deleted |
|
| 1002 | $this->persistenceHandler->urlAliasHandler()->archiveUrlAliasesForDeletedTranslations( |
|
| 1003 | $location->id, |
|
| @@ 174-182 (lines=9) @@ | ||
| 171 | ||
| 172 | $content = $this->repository->getContentService()->loadContent($newLocation->contentId); |
|
| 173 | $urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
|
| 174 | foreach ($urlAliasNames as $languageCode => $name) { |
|
| 175 | $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
|
| 176 | $newLocation->id, |
|
| 177 | $loadedTargetLocation->id, |
|
| 178 | $name, |
|
| 179 | $languageCode, |
|
| 180 | $content->contentInfo->alwaysAvailable |
|
| 181 | ); |
|
| 182 | } |
|
| 183 | ||
| 184 | $this->persistenceHandler->urlAliasHandler()->locationCopied( |
|
| 185 | $loadedSubtree->id, |
|
| @@ 438-448 (lines=11) @@ | ||
| 435 | $newLocation = $this->persistenceHandler->locationHandler()->create($spiLocationCreateStruct); |
|
| 436 | ||
| 437 | $urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
|
| 438 | foreach ($urlAliasNames as $languageCode => $name) { |
|
| 439 | $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
|
| 440 | $newLocation->id, |
|
| 441 | $newLocation->parentId, |
|
| 442 | $name, |
|
| 443 | $languageCode, |
|
| 444 | $content->contentInfo->alwaysAvailable, |
|
| 445 | // @todo: this is legacy storage specific for updating ezcontentobject_tree.path_identification_string, to be removed |
|
| 446 | $languageCode === $content->contentInfo->mainLanguageCode |
|
| 447 | ); |
|
| 448 | } |
|
| 449 | ||
| 450 | $this->repository->commit(); |
|
| 451 | } catch (Exception $e) { |
|
| @@ 676-684 (lines=9) @@ | ||
| 673 | ||
| 674 | $content = $this->repository->getContentService()->loadContent($location->contentId); |
|
| 675 | $urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
|
| 676 | foreach ($urlAliasNames as $languageCode => $name) { |
|
| 677 | $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
|
| 678 | $location->id, |
|
| 679 | $newParentLocation->id, |
|
| 680 | $name, |
|
| 681 | $languageCode, |
|
| 682 | $content->contentInfo->alwaysAvailable |
|
| 683 | ); |
|
| 684 | } |
|
| 685 | ||
| 686 | $this->persistenceHandler->urlAliasHandler()->locationMoved( |
|
| 687 | $location->id, |
|