Automattic\WooCommerce\Internal\CLI\Migrator\Core
PlatformRegistry::get_platform
Returns the configuration array for a single, specified platform ID.
Метод класса: PlatformRegistry{}
Хуков нет.
Возвращает
Массив|null. The platform configuration or null if not found.
Использование
$PlatformRegistry = new PlatformRegistry(); $PlatformRegistry->get_platform( $platform_id ): ?array;
- $platform_id(строка) (обязательный)
- The ID of the platform (e.g., 'shopify').
Код PlatformRegistry::get_platform() PlatformRegistry::get platform WC 11.0.1
public function get_platform( string $platform_id ): ?array {
return $this->platforms[ $platform_id ] ?? null;
}