You are here

public function WorkflowState::getWorkflow in Workflow 7.2

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

Returns the Workflow object of this State.

Return value

Workflow Workflow object.

3 calls to WorkflowState::getWorkflow()
WorkflowState::getOptions in includes/Entity/WorkflowState.php
Returns the allowed values for the current state.
WorkflowState::getTransitions in includes/Entity/WorkflowState.php
Returns the allowed transitions for the current state.
WorkflowState::save in includes/Entity/WorkflowState.php
Permanently saves the entity.

File

includes/Entity/WorkflowState.php, line 261
Contains workflow\includes\Entity\WorkflowState. Contains workflow\includes\Entity\WorkflowStateController.

Class

WorkflowState
Class WorkflowState

Code

public function getWorkflow() {
  if (isset($this->workflow)) {
    return $this->workflow;
  }
  return workflow_load_single($this->wid);
}