You are here

static function PaymentMethodController::descendants in Payment 7

Returns an array with the names of all available payment method controllers that inherit of this one.

return string[]

File

./payment.classes.inc, line 950
The API and related functions for executing and managing payments.

Class

PaymentMethodController
A payment method controller, e.g. the logic behind a payment method.

Code

static function descendants() {
  $descendants = array();
  foreach (payment_method_controllers_info() as $controller_name) {
    if (is_subclass_of($controller_name, get_called_class())) {
      $descendants[] = $controller_name;
    }
  }
  return $descendants;
}