Automattic\WooCommerce\Vendor\GraphQL\Utils
SchemaPrinter::printDirective
Method of the class: SchemaPrinter{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = SchemaPrinter::printDirective( $directive, $options ): string;
- $directive(Directive) (required)
- .
- $options(array) (required)
- .
SchemaPrinter::printDirective() SchemaPrinter::printDirective code WC 10.9.1
protected static function printDirective(Directive $directive, array $options): string
{
return static::printDescription($options, $directive)
. 'directive @' . $directive->name
. static::printArgs($options, $directive->args)
. ($directive->isRepeatable ? ' repeatable' : '')
. ' on ' . implode(' | ', $directive->locations);
}