You are here

public function OrderAdminController::addressBook in Ubercart 8.4

Displays a form to select a previously entered address.

1 string reference to 'OrderAdminController::addressBook'
uc_order.routing.yml in uc_order/uc_order.routing.yml
uc_order/uc_order.routing.yml

File

uc_order/src/Controller/OrderAdminController.php, line 49

Class

OrderAdminController
Controller routines for order routes.

Namespace

Drupal\uc_order\Controller

Code

public function addressBook(Request $request) {
  $uid = intval($request->request
    ->get('uid'));
  $type = $request->request
    ->get('type');
  $func = $request->request
    ->get('func');
  $form = $this
    ->formBuilder()
    ->getForm('\\Drupal\\uc_order\\Form\\AddressBookForm', $uid, $type, $func);
  return new Response(\Drupal::service('renderer')
    ->render($form));
}