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