Automattic\WooCommerce\Vendor\GraphQL\Server

ServerConfig::setErrorsHandlerpublicWC 1.0

Method of the class: ServerConfig{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ServerConfig = new ServerConfig();
$ServerConfig->setErrorsHandler( $handler ): self;
$handler(callable) (required)
.

ServerConfig::setErrorsHandler() code WC 10.8.1

public function setErrorsHandler(callable $handler): self
{
    $this->errorsHandler = $handler;

    return $this;
}