|
@@ 163-171 (lines=9) @@
|
| 160 |
|
|
| 161 |
|
$content = $this->repository->getContentService()->loadContent($newLocation->contentId); |
| 162 |
|
$urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
| 163 |
|
foreach ($urlAliasNames as $languageCode => $name) { |
| 164 |
|
$this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
| 165 |
|
$newLocation->id, |
| 166 |
|
$loadedTargetLocation->id, |
| 167 |
|
$name, |
| 168 |
|
$languageCode, |
| 169 |
|
$content->contentInfo->alwaysAvailable |
| 170 |
|
); |
| 171 |
|
} |
| 172 |
|
|
| 173 |
|
$this->persistenceHandler->urlAliasHandler()->locationCopied( |
| 174 |
|
$loadedSubtree->id, |
|
@@ 423-433 (lines=11) @@
|
| 420 |
|
$newLocation = $this->persistenceHandler->locationHandler()->create($spiLocationCreateStruct); |
| 421 |
|
|
| 422 |
|
$urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
| 423 |
|
foreach ($urlAliasNames as $languageCode => $name) { |
| 424 |
|
$this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
| 425 |
|
$newLocation->id, |
| 426 |
|
$newLocation->parentId, |
| 427 |
|
$name, |
| 428 |
|
$languageCode, |
| 429 |
|
$content->contentInfo->alwaysAvailable, |
| 430 |
|
// @todo: this is legacy storage specific for updating ezcontentobject_tree.path_identification_string, to be removed |
| 431 |
|
$languageCode === $content->contentInfo->mainLanguageCode |
| 432 |
|
); |
| 433 |
|
} |
| 434 |
|
|
| 435 |
|
$this->repository->commit(); |
| 436 |
|
} catch (Exception $e) { |
|
@@ 661-669 (lines=9) @@
|
| 658 |
|
|
| 659 |
|
$content = $this->repository->getContentService()->loadContent($location->contentId); |
| 660 |
|
$urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
| 661 |
|
foreach ($urlAliasNames as $languageCode => $name) { |
| 662 |
|
$this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
| 663 |
|
$location->id, |
| 664 |
|
$newParentLocation->id, |
| 665 |
|
$name, |
| 666 |
|
$languageCode, |
| 667 |
|
$content->contentInfo->alwaysAvailable |
| 668 |
|
); |
| 669 |
|
} |
| 670 |
|
|
| 671 |
|
$this->persistenceHandler->urlAliasHandler()->locationMoved( |
| 672 |
|
$location->id, |