Sulu\Bundle\CategoryBundle\Category\CategoryManagerInterface::save PHP Method

save() public method

If data.id is set, the category which is assigned to the given id is overwritten. If patch is set, the category which is assigned to the given id is updated partially.
public save ( $data, $userId, $locale, boolean $patch = false ) : Sulu\Bundle\CategoryBundle\Entity\CategoryInterface
$data
$userId int Id of the user which is set as creator/changer. If null, the user of the request is set
$locale
$patch boolean
return Sulu\Bundle\CategoryBundle\Entity\CategoryInterface
    public function save($data, $userId, $locale, $patch = false);