Automattic\WooCommerce\Vendor\GraphQL\Utils
SchemaExtender::extendNamedTypeWithoutCache
Метод класса: SchemaExtender{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->extendNamedTypeWithoutCache( $type ): Type;
- $type(Type) (обязательный)
- .
Код SchemaExtender::extendNamedTypeWithoutCache() SchemaExtender::extendNamedTypeWithoutCache WC 11.0.1
protected function extendNamedTypeWithoutCache(Type $type): Type
{
switch (true) {
case $type instanceof ScalarType: return $this->extendScalarType($type);
case $type instanceof ObjectType: return $this->extendObjectType($type);
case $type instanceof InterfaceType: return $this->extendInterfaceType($type);
case $type instanceof UnionType: return $this->extendUnionType($type);
case $type instanceof EnumType: return $this->extendEnumType($type);
case $type instanceof InputObjectType: return $this->extendInputObjectType($type);
default:
$unconsideredType = get_class($type);
throw new \Exception("Unconsidered type: {$unconsideredType}.");
}
}