public static function getStatusDropDownData($model, $beforeEvents = false)
	{
		$transitions = array_keys(static::getNextStatusListData($model, false, $beforeEvents));
		$items = static::getAllStatusListData($model->getWorkflow()->getId(), $model->getWorkflowSource());
		$options = [];
		foreach (array_keys($items) as $status) {
			if ($status != $model->getWorkflowStatus()->getId() && !in_array($status, $transitions)) {
				$options[$status]['disabled'] = true;
			}
		}
		return [
			'items' => $items,
			'options' => $options,
		];
	}
public static function getStatusDropDownData($model, $beforeEvents = false)
	{
		$transitions = array_keys(static::getNextStatusListData($model, false, $beforeEvents));
		$items = static::getAllStatusListData($model->getWorkflow()->getId(), $model->getWorkflowSource());
		$options = [];
		foreach (array_keys($items) as $status) {
			if ($status != $model->getWorkflowStatus()->getId() && !in_array($status, $transitions)) {
				$options[$status]['disabled'] = true;
			}
		}
		return [
			'items' => $items,
			'options' => $options,
		];
	}
public static function getStatusDropDownData ( $ model , $ beforeEvents = false ) { $ transitions = array_keys ( static :: getNextStatusListData ( $ model , false , $ beforeEvents ) ) ; $ items = static :: getAllStatusListData ( $ model -> getWorkflow ( ) -> getId ( ) , $ model -> getWorkflowSource ( ) ) ; $ options = [ ] ; foreach ( array_keys ( $ items ) as $ status ) { if ( $ status != $ model -> getWorkflowStatus ( ) -> getId ( ) && ! in_array ( $ status , $ transitions ) ) { $ options [ $ status ] [ 'disabled' ] = true ; } } return [ 'items' => $ items , 'options' => $ options , ] ; }
Returns the items and options for a dropDownList
All status options are in the list, but invalid transitions are disabled

Example:
<pre>
$statusDropDownData = WorkflowHelper::getStatusDropDownData($model);
// Html
echo Html::dropDownList('status', $model->status, $statusDropdown['items'], ['options' => $statusDropdown['options']]);
// ActiveForm
echo $form->field($model, 'status')->dropDownList($statusDropDownData['items'], ['options' => $statusDropDownData['options']]);
</pre>

@param BaseActiveRecord|SimpleWorkflowBehavior $model
@param bool $beforeEvents
@return array
Returns the items and options for a dropDownList All status options are in the list but invalid transitions are disabled