Automattic\WooCommerce\Internal\CLI\Migrator\Platforms\Webflow

WebflowMapper::extract_sku_propertiesprivateWC 1.0

Returns the sku-properties array off fieldData, or empty array.

Method of the class: WebflowMapper{}

No Hooks.

Returns

Array.

Usage

// private - for code of main (parent) class only
$result = $this->extract_sku_properties( $field_data ): array;
$field_data(object) (required)
Field data.

WebflowMapper::extract_sku_properties() code WC 11.0.0

private function extract_sku_properties( object $field_data ): array {
	$key = 'sku-properties';
	if ( isset( $field_data->{$key} ) && is_array( $field_data->{$key} ) ) {
		return $field_data->{$key};
	}
	return array();
}