/**
  * @param Order $order
  * @return array
  */
 public function getWorkflows($order)
 {
     $workflows = array();
     // allow to add orders as long as Order status is confirmed
     if ($order->getStatus()->getId() === OrderStatus::STATUS_CONFIRMED) {
         $workflows = array(array('section' => $this->getName(), 'title' => 'salesorder.orders.shipping.create', 'route' => $this->getRoute($order->getId(), 'order', 'shippings')));
     }
     return $workflows;
 }