Automattic\WooCommerce\Blocks\Domain\Services\CheckoutFieldsSchema

Validation::schema_is_unwrappedprivate staticWC 1.0

Check if the schema is unwrapped (has cart, checkout, customer, as top level keys).

Method of the class: Validation{}

No Hooks.

Returns

true|false.

Usage

$result = Validation::schema_is_unwrapped( $schema );
$schema(array) (required)
The schema to check.

Validation::schema_is_unwrapped() code WC 10.8.1

private static function schema_is_unwrapped( $schema ) {
	return isset( $schema['cart'] ) || isset( $schema['checkout'] ) || isset( $schema['customer'] );
}