Automattic\WooCommerce\Vendor\GraphQL\Server
ServerConfig::setErrorFormatter
Method of the class: ServerConfig{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ServerConfig = new ServerConfig(); $ServerConfig->setErrorFormatter( $errorFormatter ): self;
- $errorFormatter(callable) (required)
- .
ServerConfig::setErrorFormatter() ServerConfig::setErrorFormatter code WC 10.8.1
public function setErrorFormatter(callable $errorFormatter): self
{
$this->errorFormatter = $errorFormatter;
return $this;
}