| @@ 239-256 (lines=18) @@ | ||
| 236 | * |
|
| 237 | * @return \eZ\Publish\API\Repository\Values\Content\TrashItem |
|
| 238 | */ |
|
| 239 | protected function buildTrashItem(Location $location) |
|
| 240 | { |
|
| 241 | return new TrashItem( |
|
| 242 | array( |
|
| 243 | 'contentInfo' => $location->contentInfo, |
|
| 244 | 'id' => $location->id, |
|
| 245 | 'priority' => $location->priority, |
|
| 246 | 'hidden' => $location->hidden, |
|
| 247 | 'invisible' => $location->invisible, |
|
| 248 | 'remoteId' => $location->remoteId, |
|
| 249 | 'parentLocationId' => $location->parentLocationId, |
|
| 250 | 'pathString' => $location->pathString, |
|
| 251 | 'depth' => (int)$location->depth, |
|
| 252 | 'sortField' => $location->sortField, |
|
| 253 | 'sortOrder' => $location->sortOrder, |
|
| 254 | ) |
|
| 255 | ); |
|
| 256 | } |
|
| 257 | } |
|
| 258 | ||
| @@ 2655-2672 (lines=18) @@ | ||
| 2652 | * |
|
| 2653 | * @return array |
|
| 2654 | */ |
|
| 2655 | private function loadLocationProperties(Location $location, array $overwrite = array()) |
|
| 2656 | { |
|
| 2657 | return array_merge( |
|
| 2658 | array( |
|
| 2659 | 'id' => $location->id, |
|
| 2660 | 'depth' => $location->depth, |
|
| 2661 | 'parentLocationId' => $location->parentLocationId, |
|
| 2662 | 'pathString' => $location->pathString, |
|
| 2663 | 'remoteId' => $location->remoteId, |
|
| 2664 | 'hidden' => $location->hidden, |
|
| 2665 | 'invisible' => $location->invisible, |
|
| 2666 | 'priority' => $location->priority, |
|
| 2667 | 'sortField' => $location->sortField, |
|
| 2668 | 'sortOrder' => $location->sortOrder, |
|
| 2669 | ), |
|
| 2670 | $overwrite |
|
| 2671 | ); |
|
| 2672 | } |
|
| 2673 | ||
| 2674 | /** |
|
| 2675 | * Assert generated aliases to expected alias return. |
|