/** * Removes a site from this organization * * @return Workflow */ public function delete() { $workflow = $this->organization->getWorkflows()->create('remove_organization_site_membership', ['params' => ['site_id' => $this->getSite()->get('id')]]); return $workflow; }
/** * Sets the user's role within this organization * * @param string $role Role for this user to take in the organization * @return Workflow */ public function setRole($role) { $workflow = $this->organization->getWorkflows()->create('update_organization_user_membership', ['params' => ['user_id' => $this->getUser()->id, 'role' => $role]]); return $workflow; }