| @@ 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 | ||
| @@ 2917-2934 (lines=18) @@ | ||
| 2914 | * |
|
| 2915 | * @return array |
|
| 2916 | */ |
|
| 2917 | private function loadLocationProperties(Location $location, array $overwrite = []) |
|
| 2918 | { |
|
| 2919 | return array_merge( |
|
| 2920 | [ |
|
| 2921 | 'id' => $location->id, |
|
| 2922 | 'depth' => $location->depth, |
|
| 2923 | 'parentLocationId' => $location->parentLocationId, |
|
| 2924 | 'pathString' => $location->pathString, |
|
| 2925 | 'remoteId' => $location->remoteId, |
|
| 2926 | 'hidden' => $location->hidden, |
|
| 2927 | 'invisible' => $location->invisible, |
|
| 2928 | 'priority' => $location->priority, |
|
| 2929 | 'sortField' => $location->sortField, |
|
| 2930 | 'sortOrder' => $location->sortOrder, |
|
| 2931 | ], |
|
| 2932 | $overwrite |
|
| 2933 | ); |
|
| 2934 | } |
|
| 2935 | ||
| 2936 | /** |
|
| 2937 | * Assert generated aliases to expected alias return. |
|