| @@ 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 | ||
| @@ 2850-2867 (lines=18) @@ | ||
| 2847 | * |
|
| 2848 | * @return array |
|
| 2849 | */ |
|
| 2850 | private function loadLocationProperties(Location $location, array $overwrite = []) |
|
| 2851 | { |
|
| 2852 | return array_merge( |
|
| 2853 | [ |
|
| 2854 | 'id' => $location->id, |
|
| 2855 | 'depth' => $location->depth, |
|
| 2856 | 'parentLocationId' => $location->parentLocationId, |
|
| 2857 | 'pathString' => $location->pathString, |
|
| 2858 | 'remoteId' => $location->remoteId, |
|
| 2859 | 'hidden' => $location->hidden, |
|
| 2860 | 'invisible' => $location->invisible, |
|
| 2861 | 'priority' => $location->priority, |
|
| 2862 | 'sortField' => $location->sortField, |
|
| 2863 | 'sortOrder' => $location->sortOrder, |
|
| 2864 | ], |
|
| 2865 | $overwrite |
|
| 2866 | ); |
|
| 2867 | } |
|
| 2868 | ||
| 2869 | /** |
|
| 2870 | * Assert generated aliases to expected alias return. |
|