public function PaymentMethodListBuilder::render in Ubercart 8.4
Builds the entity listing as renderable array for table.html.twig.
@todo Add a link to add a new item to the #empty text.
Overrides DraggableListBuilder::render
File
- payment/
uc_payment/ src/ PaymentMethodListBuilder.php, line 182
Class
- PaymentMethodListBuilder
- Defines a class to build a listing of payment method configuration entities.
Namespace
Drupal\uc_paymentCode
public function render() {
$build['description'] = [
'#markup' => '<p>' . $this
->t('By default, only the "No payment required" payment method is listed here. To see additional payment methods you must <a href=":install">install additional modules</a>. The "Payment Method Pack" module that comes with Ubercart provides "Check" and "COD" payment methods. The "Credit Card" module that comes with Ubercart provides a credit card payment method, although you will need an additional module to provide a payment gateway for your credit card. For more information about payment methods and settings please read the <a href=":doc">Ubercart Documentation</a>.', [
':install' => Url::fromRoute('system.modules_list', [], [
'fragment' => 'edit-modules-ubercart-payment',
])
->toString(),
':doc' => Url::fromUri('https://www.drupal.org/docs/8/modules/ubercart')
->toString(),
]) . '</p><p>' . $this
->t('The order of methods shown below is the order those methods will appear on the checkout page. To re-order, drag the method to its desired location using the drag icon then save the configuration using the button at the bottom of the page.') . '</p>',
];
$build += parent::render();
return $build;
}