| @@ 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 | ||
| @@ 2982-2999 (lines=18) @@ | ||
| 2979 | * |
|
| 2980 | * @return array |
|
| 2981 | */ |
|
| 2982 | private function loadLocationProperties(Location $location, array $overwrite = []) |
|
| 2983 | { |
|
| 2984 | return array_merge( |
|
| 2985 | [ |
|
| 2986 | 'id' => $location->id, |
|
| 2987 | 'depth' => $location->depth, |
|
| 2988 | 'parentLocationId' => $location->parentLocationId, |
|
| 2989 | 'pathString' => $location->pathString, |
|
| 2990 | 'remoteId' => $location->remoteId, |
|
| 2991 | 'hidden' => $location->hidden, |
|
| 2992 | 'invisible' => $location->invisible, |
|
| 2993 | 'priority' => $location->priority, |
|
| 2994 | 'sortField' => $location->sortField, |
|
| 2995 | 'sortOrder' => $location->sortOrder, |
|
| 2996 | ], |
|
| 2997 | $overwrite |
|
| 2998 | ); |
|
| 2999 | } |
|
| 3000 | ||
| 3001 | /** |
|
| 3002 | * Assert generated aliases to expected alias return. |
|