You are here

public function ShipTo::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 AddressPaneBase::view

File

uc_order/src/Plugin/Ubercart/OrderPane/ShipTo.php, line 22

Class

ShipTo
Manage the order's shipping address and contact information.

Namespace

Drupal\uc_order\Plugin\Ubercart\OrderPane

Code

public function view(OrderInterface $order, $view_mode) {
  if ($view_mode != 'customer' || $order
    ->isShippable()) {
    return parent::view($order, $view_mode);
  }
}