Automattic\WooCommerce\Vendor\GraphQL\Utils
SchemaExtender::extend
Метод класса: SchemaExtender{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = SchemaExtender::extend( $schema, $documentAST, $options, ?callable $typeConfigDecorator, ?callable $fieldConfigDecorator ): Schema;
- $schema(Schema) (обязательный)
- .
- $documentAST(DocumentNode) (обязательный)
- .
- $options(массив)
- .
По умолчанию:[] - ?callable $typeConfigDecorator
- .
По умолчанию:null - ?callable $fieldConfigDecorator
- .
По умолчанию:null
Код SchemaExtender::extend() SchemaExtender::extend WC 11.0.1
public static function extend(
Schema $schema,
DocumentNode $documentAST,
array $options = [],
?callable $typeConfigDecorator = null,
?callable $fieldConfigDecorator = null
): Schema {
return (new static())->doExtend($schema, $documentAST, $options, $typeConfigDecorator, $fieldConfigDecorator);
}