WordPress at a glance
function is not described

Automattic\WooCommerce\Blocks\Payments

PaymentMethodRegistry::get_all_active_registered() public WC 1.0

Retrieves all registered payment methods that are also active.

{} It's a method of the class: PaymentMethodRegistry{}

No Hooks.

Return

PaymentMethodTypeInterface[]. Nothing.

Usage

$PaymentMethodRegistry = new PaymentMethodRegistry();
$PaymentMethodRegistry->get_all_active_registered();

Code of PaymentMethodRegistry::get_all_active_registered() WC 5.4.1

<?php
public function get_all_active_registered() {
	return array_filter(
		$this->get_all_registered(),
		function( $payment_method ) {
			return $payment_method->is_active();
		}
	);
}