The array returned is suitable to be used as list data value in (for instance) a dropdown list control.
Usage example : assuming model Post has a SimpleWorkflowBehavior the following code displays a dropdown list
containing all statuses defined in $post current the workflow :
echo Html::dropDownList( 'status', null, WorkflowHelper::getAllStatusListData( $post->getWorkflow()->getId(), $post->getWorkflowSource() ) )
public static getAllStatusListData ( string $workflowId, IWorkflowSource $workflowSource ) : array | ||
$workflowId | string | |
$workflowSource | IWorkflowSource | |
return | array |