| @@ 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 | ||
| @@ 2718-2735 (lines=18) @@ | ||
| 2715 | * |
|
| 2716 | * @return array |
|
| 2717 | */ |
|
| 2718 | private function loadLocationProperties(Location $location, array $overwrite = array()) |
|
| 2719 | { |
|
| 2720 | return array_merge( |
|
| 2721 | array( |
|
| 2722 | 'id' => $location->id, |
|
| 2723 | 'depth' => $location->depth, |
|
| 2724 | 'parentLocationId' => $location->parentLocationId, |
|
| 2725 | 'pathString' => $location->pathString, |
|
| 2726 | 'remoteId' => $location->remoteId, |
|
| 2727 | 'hidden' => $location->hidden, |
|
| 2728 | 'invisible' => $location->invisible, |
|
| 2729 | 'priority' => $location->priority, |
|
| 2730 | 'sortField' => $location->sortField, |
|
| 2731 | 'sortOrder' => $location->sortOrder, |
|
| 2732 | ), |
|
| 2733 | $overwrite |
|
| 2734 | ); |
|
| 2735 | } |
|
| 2736 | ||
| 2737 | /** |
|
| 2738 | * Assert generated aliases to expected alias return. |
|