Automattic\WooCommerce\Vendor\GraphQL\Utils
SchemaExtender::isSpecifiedScalarType
Method of the class: SchemaExtender{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->isSpecifiedScalarType( $type ): bool;
- $type(Type) (required)
- .
SchemaExtender::isSpecifiedScalarType() SchemaExtender::isSpecifiedScalarType code WC 10.9.1
protected function isSpecifiedScalarType(Type $type): bool
{
return $type instanceof NamedType
&& in_array($type->name, [
Type::STRING,
Type::INT,
Type::FLOAT,
Type::BOOLEAN,
Type::ID,
], true);
}