|
@@ 161-169 (lines=9) @@
|
| 158 |
|
|
| 159 |
|
$content = $this->repository->getContentService()->loadContent($newLocation->contentId); |
| 160 |
|
$urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
| 161 |
|
foreach ($urlAliasNames as $languageCode => $name) { |
| 162 |
|
$this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
| 163 |
|
$newLocation->id, |
| 164 |
|
$loadedTargetLocation->id, |
| 165 |
|
$name, |
| 166 |
|
$languageCode, |
| 167 |
|
$content->contentInfo->alwaysAvailable |
| 168 |
|
); |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
$this->persistenceHandler->urlAliasHandler()->locationCopied( |
| 172 |
|
$loadedSubtree->id, |
|
@@ 390-400 (lines=11) @@
|
| 387 |
|
$newLocation = $this->persistenceHandler->locationHandler()->create($spiLocationCreateStruct); |
| 388 |
|
|
| 389 |
|
$urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
| 390 |
|
foreach ($urlAliasNames as $languageCode => $name) { |
| 391 |
|
$this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
| 392 |
|
$newLocation->id, |
| 393 |
|
$newLocation->parentId, |
| 394 |
|
$name, |
| 395 |
|
$languageCode, |
| 396 |
|
$content->contentInfo->alwaysAvailable, |
| 397 |
|
// @todo: this is legacy storage specific for updating ezcontentobject_tree.path_identification_string, to be removed |
| 398 |
|
$languageCode === $content->contentInfo->mainLanguageCode |
| 399 |
|
); |
| 400 |
|
} |
| 401 |
|
|
| 402 |
|
$this->repository->commit(); |
| 403 |
|
} catch (Exception $e) { |
|
@@ 628-636 (lines=9) @@
|
| 625 |
|
|
| 626 |
|
$content = $this->repository->getContentService()->loadContent($location->contentId); |
| 627 |
|
$urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
| 628 |
|
foreach ($urlAliasNames as $languageCode => $name) { |
| 629 |
|
$this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
| 630 |
|
$location->id, |
| 631 |
|
$newParentLocation->id, |
| 632 |
|
$name, |
| 633 |
|
$languageCode, |
| 634 |
|
$content->contentInfo->alwaysAvailable |
| 635 |
|
); |
| 636 |
|
} |
| 637 |
|
|
| 638 |
|
$this->persistenceHandler->urlAliasHandler()->locationMoved( |
| 639 |
|
$location->id, |