| @@ 226-243 (lines=18) @@ | ||
| 223 | * |
|
| 224 | * @return \eZ\Publish\API\Repository\Values\Content\TrashItem |
|
| 225 | */ |
|
| 226 | protected function buildTrashItem(Location $location) |
|
| 227 | { |
|
| 228 | return new TrashItem( |
|
| 229 | array( |
|
| 230 | 'contentInfo' => $location->contentInfo, |
|
| 231 | 'id' => $location->id, |
|
| 232 | 'priority' => $location->priority, |
|
| 233 | 'hidden' => $location->hidden, |
|
| 234 | 'invisible' => $location->invisible, |
|
| 235 | 'remoteId' => $location->remoteId, |
|
| 236 | 'parentLocationId' => $location->parentLocationId, |
|
| 237 | 'pathString' => $location->pathString, |
|
| 238 | 'depth' => (int)$location->depth, |
|
| 239 | 'sortField' => $location->sortField, |
|
| 240 | 'sortOrder' => $location->sortOrder, |
|
| 241 | ) |
|
| 242 | ); |
|
| 243 | } |
|
| 244 | } |
|
| 245 | ||
| @@ 3064-3081 (lines=18) @@ | ||
| 3061 | * |
|
| 3062 | * @return array |
|
| 3063 | */ |
|
| 3064 | private function loadLocationProperties(Location $location, array $overwrite = []) |
|
| 3065 | { |
|
| 3066 | return array_merge( |
|
| 3067 | [ |
|
| 3068 | 'id' => $location->id, |
|
| 3069 | 'depth' => $location->depth, |
|
| 3070 | 'parentLocationId' => $location->parentLocationId, |
|
| 3071 | 'pathString' => $location->pathString, |
|
| 3072 | 'remoteId' => $location->remoteId, |
|
| 3073 | 'hidden' => $location->hidden, |
|
| 3074 | 'invisible' => $location->invisible, |
|
| 3075 | 'priority' => $location->priority, |
|
| 3076 | 'sortField' => $location->sortField, |
|
| 3077 | 'sortOrder' => $location->sortOrder, |
|
| 3078 | ], |
|
| 3079 | $overwrite |
|
| 3080 | ); |
|
| 3081 | } |
|
| 3082 | ||
| 3083 | /** |
|
| 3084 | * Assert generated aliases to expected alias return. |
|