/** * Returns data to render template. * * @param array $options * * @throws WidgetException * * @return array */ public function getData($options) { $this->checkRequiredParameters($options, ['orderNumber', 'orderDate', 'orderId', 'locale']); $this->getOrderData($options); $this->fetchDocumentData($options); parent::orderDataByDate(false); return parent::serializeData(); }