| @@ 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 | ||
| @@ 2829-2846 (lines=18) @@ | ||
| 2826 | * |
|
| 2827 | * @return array |
|
| 2828 | */ |
|
| 2829 | private function loadLocationProperties(Location $location, array $overwrite = []) |
|
| 2830 | { |
|
| 2831 | return array_merge( |
|
| 2832 | [ |
|
| 2833 | 'id' => $location->id, |
|
| 2834 | 'depth' => $location->depth, |
|
| 2835 | 'parentLocationId' => $location->parentLocationId, |
|
| 2836 | 'pathString' => $location->pathString, |
|
| 2837 | 'remoteId' => $location->remoteId, |
|
| 2838 | 'hidden' => $location->hidden, |
|
| 2839 | 'invisible' => $location->invisible, |
|
| 2840 | 'priority' => $location->priority, |
|
| 2841 | 'sortField' => $location->sortField, |
|
| 2842 | 'sortOrder' => $location->sortOrder, |
|
| 2843 | ], |
|
| 2844 | $overwrite |
|
| 2845 | ); |
|
| 2846 | } |
|
| 2847 | ||
| 2848 | /** |
|
| 2849 | * Assert generated aliases to expected alias return. |
|