Automattic\WooCommerce\Vendor\GraphQL\Utils
SchemaExtender::extendNamedType
Method of the class: SchemaExtender{}
No Hooks.
Returns
T&NamedType.
Usage
// protected - for code of main (parent) or child class $result = $this->extendNamedType( $type ): Type;
- $type(T&NamedType) (required)
- .
SchemaExtender::extendNamedType() SchemaExtender::extendNamedType code WC 10.9.1
protected function extendNamedType(Type $type): Type
{
if (Introspection::isIntrospectionType($type) || $this->isSpecifiedScalarType($type)) {
return $type;
}
// @phpstan-ignore-next-line the subtypes line up
return $this->extendTypeCache[$type->name] ??= $this->extendNamedTypeWithoutCache($type);
}