public function UpdateOrder::view in Ubercart 8.4
Returns the contents of an order pane as a store administrator.
Parameters
\Drupal\uc_order\OrderInterface $order: The order that is being viewed.
string $view_mode: The view mode that is being used to render the order.
Return value
array A render array showing order data.
Overrides OrderPanePluginInterface::view
File
- uc_order/
src/ Plugin/ Ubercart/ OrderPane/ UpdateOrder.php, line 22
Class
- UpdateOrder
- Update an order's status or add comments to an order.
Namespace
Drupal\uc_order\Plugin\Ubercart\OrderPaneCode
public function view(OrderInterface $order, $view_mode) {
if ($view_mode != 'customer') {
// @todo Merge OrderUpdateForm into this plugin?
return \Drupal::formBuilder()
->getForm('\\Drupal\\uc_order\\Form\\OrderUpdateForm', $order);
}
}