| @@ 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) { |
|
| @@ 982-991 (lines=10) @@ | ||
| 979 | $content->getVersionInfo()->getContentInfo() |
|
| 980 | ); |
|
| 981 | foreach ($locations as $location) { |
|
| 982 | foreach ($urlAliasNames as $languageCode => $name) { |
|
| 983 | $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
|
| 984 | $location->id, |
|
| 985 | $location->parentLocationId, |
|
| 986 | $name, |
|
| 987 | $languageCode, |
|
| 988 | $content->contentInfo->alwaysAvailable, |
|
| 989 | $updatePathIdentificationString ? $languageCode === $content->contentInfo->mainLanguageCode : false |
|
| 990 | ); |
|
| 991 | } |
|
| 992 | // archive URL aliases of Translations that got deleted |
|
| 993 | $this->persistenceHandler->urlAliasHandler()->archiveUrlAliasesForDeletedTranslations( |
|
| 994 | $location->id, |
|