| @@ 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 | ||
| @@ 2959-2976 (lines=18) @@ | ||
| 2956 | * |
|
| 2957 | * @return array |
|
| 2958 | */ |
|
| 2959 | private function loadLocationProperties(Location $location, array $overwrite = []) |
|
| 2960 | { |
|
| 2961 | return array_merge( |
|
| 2962 | [ |
|
| 2963 | 'id' => $location->id, |
|
| 2964 | 'depth' => $location->depth, |
|
| 2965 | 'parentLocationId' => $location->parentLocationId, |
|
| 2966 | 'pathString' => $location->pathString, |
|
| 2967 | 'remoteId' => $location->remoteId, |
|
| 2968 | 'hidden' => $location->hidden, |
|
| 2969 | 'invisible' => $location->invisible, |
|
| 2970 | 'priority' => $location->priority, |
|
| 2971 | 'sortField' => $location->sortField, |
|
| 2972 | 'sortOrder' => $location->sortOrder, |
|
| 2973 | ], |
|
| 2974 | $overwrite |
|
| 2975 | ); |
|
| 2976 | } |
|
| 2977 | ||
| 2978 | /** |
|
| 2979 | * Assert generated aliases to expected alias return. |
|