public static function WorkflowState::load in Workflow 7
Same name and namespace in other branches
- 7.2 includes/Entity/WorkflowState.php \WorkflowState::load()
Alternative constructor, via a static function, loading objects from table {workflow_states}.
24 calls to WorkflowState::load()
- Workflow::getCreationState in includes/
Entity/ Workflow.php - Property functions.
- Workflow::getState in includes/
Entity/ Workflow.php - WorkflowDefaultWidget::formElement in includes/
Field/ WorkflowDefaultWidget.php - Implements hook_field_widget_form --> WidgetInterface::formElement().
- workflowfield_field_formatter_view in workflow_field/
workflowfield.formatter.inc - Implements hook_field_formatter_view().
- WorkflowItem::getCurrentState in includes/
Field/ WorkflowItem.php
File
- includes/
Entity/ WorkflowState.php, line 71 - Contains workflow\includes\Entity\WorkflowState.
Class
- WorkflowState
- @file Contains workflow\includes\Entity\WorkflowState.
Code
public static function load($sid) {
$states = self::getStates($sid);
$state = isset($states[$sid]) ? $states[$sid] : NULL;
return $state;
}