public function WorkflowState::__construct in State Machine 8
Constructs a new WorkflowState object.
Parameters
string $id: The state ID.
string $label: The state label.
File
- src/
Plugin/ Workflow/ WorkflowState.php, line 32
Class
- WorkflowState
- Defines the class for workflow states.
Namespace
Drupal\state_machine\Plugin\WorkflowCode
public function __construct($id, $label) {
$this->id = $id;
$this->label = $label;
}