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