Pantheon\Terminus\Models\Organization::getWorkflows PHP Method

getWorkflows() public method

public getWorkflows ( ) : Workflows
return Pantheon\Terminus\Collections\Workflows
    public function getWorkflows()
    {
        if (empty($this->workflows)) {
            $this->workflows = $this->getContainer()->get(Workflows::class, [['organization' => $this]]);
        }
        return $this->workflows;
    }

Usage Example

コード例 #1
0
 /**
  * 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;
 }
All Usage Examples Of Pantheon\Terminus\Models\Organization::getWorkflows