|
@@ 177-185 (lines=9) @@
|
| 174 |
|
|
| 175 |
|
$content = $this->repository->getContentService()->loadContent($newLocation->contentId); |
| 176 |
|
$urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
| 177 |
|
foreach ($urlAliasNames as $languageCode => $name) { |
| 178 |
|
$this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
| 179 |
|
$newLocation->id, |
| 180 |
|
$loadedTargetLocation->id, |
| 181 |
|
$name, |
| 182 |
|
$languageCode, |
| 183 |
|
$content->contentInfo->alwaysAvailable |
| 184 |
|
); |
| 185 |
|
} |
| 186 |
|
|
| 187 |
|
$this->persistenceHandler->urlAliasHandler()->locationCopied( |
| 188 |
|
$loadedSubtree->id, |
|
@@ 481-491 (lines=11) @@
|
| 478 |
|
$newLocation = $this->persistenceHandler->locationHandler()->create($spiLocationCreateStruct); |
| 479 |
|
|
| 480 |
|
$urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
| 481 |
|
foreach ($urlAliasNames as $languageCode => $name) { |
| 482 |
|
$this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
| 483 |
|
$newLocation->id, |
| 484 |
|
$newLocation->parentId, |
| 485 |
|
$name, |
| 486 |
|
$languageCode, |
| 487 |
|
$content->contentInfo->alwaysAvailable, |
| 488 |
|
// @todo: this is legacy storage specific for updating ezcontentobject_tree.path_identification_string, to be removed |
| 489 |
|
$languageCode === $content->contentInfo->mainLanguageCode |
| 490 |
|
); |
| 491 |
|
} |
| 492 |
|
|
| 493 |
|
$this->repository->commit(); |
| 494 |
|
} catch (Exception $e) { |
|
@@ 720-728 (lines=9) @@
|
| 717 |
|
|
| 718 |
|
$content = $this->repository->getContentService()->loadContent($location->contentId); |
| 719 |
|
$urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
| 720 |
|
foreach ($urlAliasNames as $languageCode => $name) { |
| 721 |
|
$this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
| 722 |
|
$location->id, |
| 723 |
|
$newParentLocation->id, |
| 724 |
|
$name, |
| 725 |
|
$languageCode, |
| 726 |
|
$content->contentInfo->alwaysAvailable |
| 727 |
|
); |
| 728 |
|
} |
| 729 |
|
|
| 730 |
|
$this->persistenceHandler->urlAliasHandler()->locationMoved( |
| 731 |
|
$location->id, |