| @@ 323-335 (lines=13) @@ | ||
| 320 | * |
|
| 321 | * @param \eZ\Publish\API\Repository\Values\Content\Location $location |
|
| 322 | */ |
|
| 323 | public function deleteLocation(Location $location) |
|
| 324 | { |
|
| 325 | $this->service->deleteLocation($location); |
|
| 326 | $this->signalDispatcher->emit( |
|
| 327 | new DeleteLocationSignal( |
|
| 328 | array( |
|
| 329 | 'contentId' => $location->contentId, |
|
| 330 | 'locationId' => $location->id, |
|
| 331 | 'parentLocationId' => $location->parentLocationId, |
|
| 332 | ) |
|
| 333 | ) |
|
| 334 | ); |
|
| 335 | } |
|
| 336 | ||
| 337 | /** |
|
| 338 | * Instantiates a new location create class. |
|
| @@ 245-258 (lines=14) @@ | ||
| 242 | * |
|
| 243 | * @param \eZ\Publish\API\Repository\Values\Content\Location $location |
|
| 244 | */ |
|
| 245 | public function refreshSystemUrlAliasesForLocation(Location $location): void |
|
| 246 | { |
|
| 247 | $this->service->refreshSystemUrlAliasesForLocation($location); |
|
| 248 | ||
| 249 | $this->signalDispatcher->emit( |
|
| 250 | new UpdateLocationSignal( |
|
| 251 | [ |
|
| 252 | 'contentId' => $location->contentId, |
|
| 253 | 'locationId' => $location->id, |
|
| 254 | 'parentLocationId' => $location->parentLocationId, |
|
| 255 | ] |
|
| 256 | ) |
|
| 257 | ); |
|
| 258 | } |
|
| 259 | ||
| 260 | /** |
|
| 261 | * Delete global, system or custom URL alias pointing to non-existent Locations. |
|