Automattic\WooCommerce\Blocks\Integrations

IntegrationRegistry::get_registered()publicWC 1.0

Retrieves a registered Integration by name.

Method of the class: IntegrationRegistry{}

No Hooks.

Return

IntegrationInterface|null. The registered integration, or null if it is not registered.

Usage

$IntegrationRegistry = new IntegrationRegistry();
$IntegrationRegistry->get_registered( $name );
$name(string) (required)
Integration name.

IntegrationRegistry::get_registered() code WC 8.7.0

public function get_registered( $name ) {
	return $this->is_registered( $name ) ? $this->registered_integrations[ $name ] : null;
}