protected function getEditionResponse(Entity $entity = null) { $response = parent::getEditionResponse($entity); // Add the status labels. $response->addData('orders', array('statuses' => Order::getStatusLabels())); return $response; }
public function issue() { // Load the statuses map into the response. $this->addData('orders', array('statuses' => OrderModel::getStatusLabels())); parent::issue(); }