Automattic\WooCommerce\Vendor\GraphQL\Utils
SchemaPrinter::doPrint
Method of the class: SchemaPrinter{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = SchemaPrinter::doPrint( $schema, $options ): string;
- $schema(Schema) (required)
- .
- $options(array)
- .
Default:[]
SchemaPrinter::doPrint() SchemaPrinter::doPrint code WC 10.9.1
public static function doPrint(Schema $schema, array $options = []): string
{
return static::printFilteredSchema(
$schema,
static fn (Directive $directive): bool => ! Directive::isSpecifiedDirective($directive),
static fn (NamedType $type): bool => ! $type->isBuiltInType(),
$options
);
}