function State::__construct
Same name in this branch
- main core/lib/Drupal/Core/State/State.php \Drupal\Core\State\State::__construct()
Same name and namespace in other branches
- 11.x core/modules/workflows/src/State.php \Drupal\workflows\State::__construct()
- 11.x core/lib/Drupal/Core/State/State.php \Drupal\Core\State\State::__construct()
- 10 core/modules/workflows/src/State.php \Drupal\workflows\State::__construct()
- 10 core/lib/Drupal/Core/State/State.php \Drupal\Core\State\State::__construct()
- 9 core/modules/workflows/src/State.php \Drupal\workflows\State::__construct()
- 9 core/lib/Drupal/Core/State/State.php \Drupal\Core\State\State::__construct()
- 8.9.x core/modules/workflows/src/State.php \Drupal\workflows\State::__construct()
- 8.9.x core/lib/Drupal/Core/State/State.php \Drupal\Core\State\State::__construct()
State constructor.
Parameters
\Drupal\workflows\WorkflowTypeInterface $workflow: The workflow the state is attached to.
string $id: The state's ID.
string $label: The state's label.
int $weight: The state's weight.
File
-
core/
modules/ workflows/ src/ State.php, line 22
Class
- State
- A value object representing a workflow state.
Namespace
Drupal\workflowsCode
public function __construct(protected WorkflowTypeInterface $workflow, protected $id, protected $label, protected $weight = 0) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.