protected function isOrderLocked(OrderEvent $event)
    {
        if (!$event->getForce() && $event->getOrder()->getLocked()) {
            $event->addMessage(new ResourceMessage('ekyna_order.event.locked', ResourceMessage::TYPE_ERROR));
            return true;
        }
        return false;
    }
protected function isOrderLocked(OrderEvent $event)
    {
        if (!$event->getForce() && $event->getOrder()->getLocked()) {
            $event->addMessage(new ResourceMessage('ekyna_order.event.locked', ResourceMessage::TYPE_ERROR));
            return true;
        }
        return false;
    }
protected function isOrderLocked ( OrderEvent $ event ) { if ( ! $ event -> getForce ( ) && $ event -> getOrder ( ) -> getLocked ( ) ) { $ event -> addMessage ( new ResourceMessage ( 'ekyna_order.event.locked' , ResourceMessage :: TYPE_ERROR ) ) ; return true ; } return false ; }
Returns whether the order is locked or not
and stop the event propagation if it's the case.

@param OrderEvent $event
@return bool
Returns whether the order is locked or not and stop the event propagation if it s the case .