| @@ 229-246 (lines=18) @@ | ||
| 226 | * |
|
| 227 | * @return \eZ\Publish\API\Repository\Values\Content\TrashItem |
|
| 228 | */ |
|
| 229 | protected function buildTrashItem(Location $location) |
|
| 230 | { |
|
| 231 | return new TrashItem( |
|
| 232 | array( |
|
| 233 | 'contentInfo' => $location->contentInfo, |
|
| 234 | 'id' => $location->id, |
|
| 235 | 'priority' => $location->priority, |
|
| 236 | 'hidden' => $location->hidden, |
|
| 237 | 'invisible' => $location->invisible, |
|
| 238 | 'remoteId' => $location->remoteId, |
|
| 239 | 'parentLocationId' => $location->parentLocationId, |
|
| 240 | 'pathString' => $location->pathString, |
|
| 241 | 'depth' => (int)$location->depth, |
|
| 242 | 'sortField' => $location->sortField, |
|
| 243 | 'sortOrder' => $location->sortOrder, |
|
| 244 | ) |
|
| 245 | ); |
|
| 246 | } |
|
| 247 | } |
|
| 248 | ||
| @@ 3025-3042 (lines=18) @@ | ||
| 3022 | * |
|
| 3023 | * @return array |
|
| 3024 | */ |
|
| 3025 | private function loadLocationProperties(Location $location, array $overwrite = []) |
|
| 3026 | { |
|
| 3027 | return array_merge( |
|
| 3028 | [ |
|
| 3029 | 'id' => $location->id, |
|
| 3030 | 'depth' => $location->depth, |
|
| 3031 | 'parentLocationId' => $location->parentLocationId, |
|
| 3032 | 'pathString' => $location->pathString, |
|
| 3033 | 'remoteId' => $location->remoteId, |
|
| 3034 | 'hidden' => $location->hidden, |
|
| 3035 | 'invisible' => $location->invisible, |
|
| 3036 | 'priority' => $location->priority, |
|
| 3037 | 'sortField' => $location->sortField, |
|
| 3038 | 'sortOrder' => $location->sortOrder, |
|
| 3039 | ], |
|
| 3040 | $overwrite |
|
| 3041 | ); |
|
| 3042 | } |
|
| 3043 | ||
| 3044 | /** |
|
| 3045 | * Assert generated aliases to expected alias return. |
|