eZ\Publish\Core\SignalSlot\LocationService::updateLocation PHP Method

updateLocation() public method

Updates $location in the content repository.
public updateLocation ( eZ\Publish\API\Repository\Values\Content\Location $location, eZ\Publish\API\Repository\Values\Content\LocationUpdateStruct $locationUpdateStruct ) : eZ\Publish\API\Repository\Values\Content\Location
$location eZ\Publish\API\Repository\Values\Content\Location
$locationUpdateStruct eZ\Publish\API\Repository\Values\Content\LocationUpdateStruct
return eZ\Publish\API\Repository\Values\Content\Location the updated Location
    public function updateLocation(Location $location, LocationUpdateStruct $locationUpdateStruct)
    {
        $returnValue = $this->service->updateLocation($location, $locationUpdateStruct);
        $this->signalDispatcher->emit(new UpdateLocationSignal(array('contentId' => $location->contentId, 'locationId' => $location->id)));
        return $returnValue;
    }