Automattic\WooCommerce\Vendor\GraphQL\Server

ServerConfig::setErrorFormatterpublicWC 1.0

Method of the class: ServerConfig{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ServerConfig = new ServerConfig();
$ServerConfig->setErrorFormatter( $errorFormatter ): self;
$errorFormatter(callable) (required)
.

ServerConfig::setErrorFormatter() code WC 10.8.1

public function setErrorFormatter(callable $errorFormatter): self
{
    $this->errorFormatter = $errorFormatter;

    return $this;
}