public function Workflow::getWorkflowItem in Workflow 7
Helper function for workflow_get_workflows_by_type() to get/set the Item of a particular Workflow. It loads the Workflow object with the particular Field Instance data. @todo: this is not robust: 1 Item has 1 Workflow; 1 Workflow may have N Items (fields)
File
- includes/Entity/ Workflow.php, line 347 
- Contains workflow\includes\Entity\Workflow.
Class
- Workflow
- @file Contains workflow\includes\Entity\Workflow.
Code
public function getWorkflowItem(WorkflowItem $item = NULL) {
  if ($item) {
    $this->item = $item;
  }
  return $this->item;
}