public function getShipmentStateBadge($stateOrShipment)
    {
        $state = $stateOrShipment instanceof ShipmentInterface ? $stateOrShipment->getState() : $stateOrShipment;

        return sprintf(
            '<span class="label label-%s">%s</span>',
            ShipmentStates::getTheme($state),
            $this->getShipmentStateLabel($state)
        );
    }
public function getShipmentStateBadge($stateOrShipment)
    {
        $state = $stateOrShipment instanceof ShipmentInterface ? $stateOrShipment->getState() : $stateOrShipment;

        return sprintf(
            '<span class="label label-%s">%s</span>',
            ShipmentStates::getTheme($state),
            $this->getShipmentStateLabel($state)
        );
    }
public function getShipmentStateBadge ( $ stateOrShipment ) { $ state = $ stateOrShipment instanceof ShipmentInterface ? $ stateOrShipment -> getState ( ) : $ stateOrShipment ; return sprintf ( '<span class="label label-%s">%s</span>' , ShipmentStates :: getTheme ( $ state ) , $ this -> getShipmentStateLabel ( $ state ) ) ; }
Returns the shipment state badge.

@param string|ShipmentInterface $stateOrShipment
@return string
Returns the shipment state badge .