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

moveSubtree() public method

If a user has the permission to move the location to a target location he can do it regardless of an existing descendant on which the user has no permission.
public moveSubtree ( eZ\Publish\API\Repository\Values\Content\Location $location, eZ\Publish\API\Repository\Values\Content\Location $newParentLocation )
$location eZ\Publish\API\Repository\Values\Content\Location
$newParentLocation eZ\Publish\API\Repository\Values\Content\Location
    public function moveSubtree(Location $location, Location $newParentLocation)
    {
        $returnValue = $this->service->moveSubtree($location, $newParentLocation);
        $this->signalDispatcher->emit(new MoveSubtreeSignal(array('locationId' => $location->id, 'newParentLocationId' => $newParentLocation->id)));
        return $returnValue;
    }