You are here

function WorkflowState::getWorkflow in Workflow 7

Same name and namespace in other branches
  1. 7.2 includes/Entity/WorkflowState.php \WorkflowState::getWorkflow()

Returns the Workflow object of this State.

Return value

Workflow object.

File

includes/Entity/WorkflowState.php, line 240
Contains workflow\includes\Entity\WorkflowState.

Class

WorkflowState
@file Contains workflow\includes\Entity\WorkflowState.

Code

function getWorkflow() {
  return isset($this->workflow) ? $this->workflow : Workflow::load($this->wid);
}