You are here

public static function WorkflowState::create in Workflow 7

Creates and returns a new WorkflowState object.

$return WorkflowState $state A new WorkflowState object

"New considered harmful".

2 calls to WorkflowState::create()
workflow_admin_ui_overview_form in workflow_admin_ui/workflow_admin_ui.pages.inc
Menu callback. Create the main workflow page, which gives an overview of workflows and workflow states. Replaced by http://drupal.org/node/1367530.
workflow_admin_ui_overview_form_submit in workflow_admin_ui/workflow_admin_ui.pages.inc
Submission handler for the state form.

File

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

Class

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

Code

public static function create($sid, $wid) {
  $state = new WorkflowState($sid, $wid);
  return $state;
}