Automattic\WooCommerce\Vendor\GraphQL\Type\Definition

CustomScalarType::parseValuepublicWC 1.0

Method of the class: CustomScalarType{}

No Hooks.

Returns

null. Nothing (null).

Usage

$CustomScalarType = new CustomScalarType();
$CustomScalarType->parseValue( $value );
$value(required)
.

CustomScalarType::parseValue() code WC 10.9.4

public function parseValue($value)
{
    if (isset($this->config['parseValue'])) {
        return $this->config['parseValue']($value);
    }

    return $value;
}