Sulu\Bundle\MediaBundle\Collection\Manager\CollectionManagerInterface::move PHP Method

move() public method

Moves a collection into another collection If you pass parentId = null i moves to the root.
public move ( integer $id, string $locale, integer | null $destinationId = null ) : Collection
$id integer the id of the category to move
$locale string the locale which the collection should be return
$destinationId integer | null the parent where the collection should be placed
return Sulu\Bundle\MediaBundle\Api\Collection
    public function move($id, $locale, $destinationId = null);