Automattic\WooCommerce\Vendor\GraphQL\Utils

SchemaPrinter::printBlockprotected staticWC 1.0

Method of the class: SchemaPrinter{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = SchemaPrinter::printBlock( $items ): string;
$items(array) (required)
.

SchemaPrinter::printBlock() code WC 10.9.1

protected static function printBlock(array $items): string
{
    return $items === []
        ? ''
        : " {\n" . implode("\n", $items) . "\n}";
}