Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / workflows / src / State.php
index f8b4faea3c0f3be06952d8a883a6969a44110907..5149e265e97b7714efcf61c7e7897b622a1f32b8 100644 (file)
@@ -4,10 +4,6 @@ namespace Drupal\workflows;
 
 /**
  * A value object representing a workflow state.
- *
- * @internal
- *   The workflow system is currently experimental and should only be leveraged
- *   by experimental modules and development releases of contributed modules.
  */
 class State implements StateInterface {
 
@@ -51,7 +47,7 @@ class State implements StateInterface {
    * @param int $weight
    *   The state's weight.
    */
-  public function __construct(WorkflowInterface $workflow, $id, $label, $weight = 0) {
+  public function __construct(WorkflowTypeInterface $workflow, $id, $label, $weight = 0) {
     $this->workflow = $workflow;
     $this->id = $id;
     $this->label = $label;
@@ -104,7 +100,7 @@ class State implements StateInterface {
   }
 
   /**
-   * Helper method to convert a list of states to labels
+   * Helper method to convert a State value object to a label.
    *
    * @param \Drupal\workflows\StateInterface $state
    *