getWorkflows() public method

public getWorkflows ( ) : Workflows
return Pantheon\Terminus\Collections\Workflows
 /**
  * Changes the role of the given member
  *
  * @param string $role Desired role for this organization
  * @return Workflow
  */
 public function setRole($role)
 {
     $workflow = $this->site->getWorkflows()->create('update_site_organization_membership', ['params' => ['organization_id' => $this->id, 'role' => $role]]);
     return $workflow;
 }
Beispiel #2
0
 /**
  * Enables New Relic
  *
  * @return Workflow
  */
 public function enable()
 {
     return $this->site->getWorkflows()->create('enable_new_relic_for_site', ['site' => $this->site->id]);
 }