You are here

function uc_payment_method_list in Ubercart 8.4

Returns a list of available payment methods plugins.

Return value

array An array of payment method definitions, keyed by method ID.

4 calls to uc_payment_method_list()
Method::getValueOptions in payment/uc_payment/src/Plugin/views/filter/Method.php
Overrides InOperator::getValueOptions().
Method::render in payment/uc_payment/src/Plugin/views/field/Method.php
Renders the field.
uc_payment_default_rules_configuration in payment/uc_payment/uc_payment.rules_defaults.inc
Implements hook_default_rules_configuration().
uc_payment_uc_order_delete in payment/uc_payment/uc_payment.module
Implements hook_uc_order_delete().

File

payment/uc_payment/uc_payment.module, line 329
Defines the payment API that lets payment modules interact with Ubercart.

Code

function uc_payment_method_list() {
  return \Drupal::service('plugin.manager.uc_payment.method')
    ->getDefinitions();
}