Automattic\WooCommerce\Internal\CLI\Migrator\Core

PlatformRegistry::get_platform │ public │ WC 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 11.2.1

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