Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / workflows / src / WorkflowListBuilder.php
index 3e94103f4b1caf3e5e6b39a060715557ffa65328..eb652ad533096751a2276d5d44a02557b1051940 100644 (file)
@@ -76,7 +76,7 @@ class WorkflowListBuilder extends ConfigEntityListBuilder {
       '#markup' => $entity->getTypePlugin()->label()
     ];
 
-    $items = array_map([State::class, 'labelCallback'], $entity->getStates());
+    $items = array_map([State::class, 'labelCallback'], $entity->getTypePlugin()->getStates());
     $row['states']['data'] = [
       '#theme' => 'item_list',
       '#context' => ['list_style' => 'comma-list'],