| @@ 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 | ||
| @@ 2874-2891 (lines=18) @@ | ||
| 2871 | * |
|
| 2872 | * @return array |
|
| 2873 | */ |
|
| 2874 | private function loadLocationProperties(Location $location, array $overwrite = []) |
|
| 2875 | { |
|
| 2876 | return array_merge( |
|
| 2877 | [ |
|
| 2878 | 'id' => $location->id, |
|
| 2879 | 'depth' => $location->depth, |
|
| 2880 | 'parentLocationId' => $location->parentLocationId, |
|
| 2881 | 'pathString' => $location->pathString, |
|
| 2882 | 'remoteId' => $location->remoteId, |
|
| 2883 | 'hidden' => $location->hidden, |
|
| 2884 | 'invisible' => $location->invisible, |
|
| 2885 | 'priority' => $location->priority, |
|
| 2886 | 'sortField' => $location->sortField, |
|
| 2887 | 'sortOrder' => $location->sortOrder, |
|
| 2888 | ], |
|
| 2889 | $overwrite |
|
| 2890 | ); |
|
| 2891 | } |
|
| 2892 | ||
| 2893 | /** |
|
| 2894 | * Assert generated aliases to expected alias return. |
|