Automattic\WooCommerce\Internal\CLI\Migrator\Core

PlatformRegistry::get_platformpublicWC 1.0

Returns the configuration array for a single, specified platform ID.

Method of the class: PlatformRegistry{}

No Hooks.

Returns

Array|null. The platform configuration or null if not found.

Usage

$PlatformRegistry = new PlatformRegistry();
$PlatformRegistry->get_platform( $platform_id ): ?array;
$platform_id(string) (required)
The ID of the platform (e.g., 'shopify').

PlatformRegistry::get_platform() code WC 10.7.0

public function get_platform( string $platform_id ): ?array {
	return $this->platforms[ $platform_id ] ?? null;
}