public function getOrderStateBadge($stateOrOrder)
    {
        $state = $stateOrOrder instanceof OrderInterface ? $stateOrOrder->getState() : $stateOrOrder;

        return sprintf(
            '<span class="label label-%s">%s</span>',
            OrderStates::getTheme($state),
            $this->getOrderStateLabel($state)
        );
    }
public function getOrderStateBadge($stateOrOrder)
    {
        $state = $stateOrOrder instanceof OrderInterface ? $stateOrOrder->getState() : $stateOrOrder;

        return sprintf(
            '<span class="label label-%s">%s</span>',
            OrderStates::getTheme($state),
            $this->getOrderStateLabel($state)
        );
    }
public function getOrderStateBadge ( $ stateOrOrder ) { $ state = $ stateOrOrder instanceof OrderInterface ? $ stateOrOrder -> getState ( ) : $ stateOrOrder ; return sprintf ( '<span class="label label-%s">%s</span>' , OrderStates :: getTheme ( $ state ) , $ this -> getOrderStateLabel ( $ state ) ) ; }
Returns the order state badge.

@param string|OrderInterface $stateOrOrder
@return string
Returns the order state badge .