| @@ 408-418 (lines=11) @@ | ||
| 405 | $newLocation = $this->persistenceHandler->locationHandler()->create($spiLocationCreateStruct); |
|
| 406 | ||
| 407 | $urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content); |
|
| 408 | foreach ($urlAliasNames as $languageCode => $name) { |
|
| 409 | $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
|
| 410 | $newLocation->id, |
|
| 411 | $newLocation->parentId, |
|
| 412 | $name, |
|
| 413 | $languageCode, |
|
| 414 | $content->contentInfo->alwaysAvailable, |
|
| 415 | // @todo: this is legacy storage specific for updating ezcontentobject_tree.path_identification_string, to be removed |
|
| 416 | $languageCode === $content->contentInfo->mainLanguageCode |
|
| 417 | ); |
|
| 418 | } |
|
| 419 | ||
| 420 | $this->repository->commit(); |
|
| 421 | } catch (Exception $e) { |
|
| @@ 1009-1020 (lines=12) @@ | ||
| 1006 | $locations = $this->repository->getLocationService()->loadLocations( |
|
| 1007 | $content->getVersionInfo()->getContentInfo() |
|
| 1008 | ); |
|
| 1009 | foreach ($locations as $location) { |
|
| 1010 | foreach ($urlAliasNames as $languageCode => $name) { |
|
| 1011 | $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation( |
|
| 1012 | $location->id, |
|
| 1013 | $location->parentLocationId, |
|
| 1014 | $name, |
|
| 1015 | $languageCode, |
|
| 1016 | $content->contentInfo->alwaysAvailable, |
|
| 1017 | $updatePathIdentificationString ? $languageCode === $content->contentInfo->mainLanguageCode : false |
|
| 1018 | ); |
|
| 1019 | } |
|
| 1020 | } |
|
| 1021 | } |
|
| 1022 | ||
| 1023 | /** |
|