|
@@ 175-183 (lines=9) @@
|
| 172 |
|
|
| 173 |
|
$content = $this->repository->getContentService()->loadContent($newLocation->contentId); |
| 174 |
|
$urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
| 175 |
|
foreach ($urlAliasNames as $languageCode => $name) { |
| 176 |
|
$this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
| 177 |
|
$newLocation->id, |
| 178 |
|
$loadedTargetLocation->id, |
| 179 |
|
$name, |
| 180 |
|
$languageCode, |
| 181 |
|
$content->contentInfo->alwaysAvailable |
| 182 |
|
); |
| 183 |
|
} |
| 184 |
|
|
| 185 |
|
$this->persistenceHandler->urlAliasHandler()->locationCopied( |
| 186 |
|
$loadedSubtree->id, |
|
@@ 433-443 (lines=11) @@
|
| 430 |
|
$newLocation = $this->persistenceHandler->locationHandler()->create($spiLocationCreateStruct); |
| 431 |
|
|
| 432 |
|
$urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
| 433 |
|
foreach ($urlAliasNames as $languageCode => $name) { |
| 434 |
|
$this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
| 435 |
|
$newLocation->id, |
| 436 |
|
$newLocation->parentId, |
| 437 |
|
$name, |
| 438 |
|
$languageCode, |
| 439 |
|
$content->contentInfo->alwaysAvailable, |
| 440 |
|
// @todo: this is legacy storage specific for updating ezcontentobject_tree.path_identification_string, to be removed |
| 441 |
|
$languageCode === $content->contentInfo->mainLanguageCode |
| 442 |
|
); |
| 443 |
|
} |
| 444 |
|
|
| 445 |
|
$this->repository->commit(); |
| 446 |
|
} catch (Exception $e) { |
|
@@ 672-680 (lines=9) @@
|
| 669 |
|
|
| 670 |
|
$content = $this->repository->getContentService()->loadContent($location->contentId); |
| 671 |
|
$urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
| 672 |
|
foreach ($urlAliasNames as $languageCode => $name) { |
| 673 |
|
$this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
| 674 |
|
$location->id, |
| 675 |
|
$newParentLocation->id, |
| 676 |
|
$name, |
| 677 |
|
$languageCode, |
| 678 |
|
$content->contentInfo->alwaysAvailable |
| 679 |
|
); |
| 680 |
|
} |
| 681 |
|
|
| 682 |
|
$this->persistenceHandler->urlAliasHandler()->locationMoved( |
| 683 |
|
$location->id, |