Automattic\WooCommerce\Vendor\GraphQL\Validator\Rules

QueryDepth::isEnabledprotectedWC 1.0

Method of the class: QueryDepth{}

No Hooks.

Returns

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->isEnabled(): bool;

QueryDepth::isEnabled() code WC 10.9.1

protected function isEnabled(): bool
{
    return $this->maxQueryDepth !== self::DISABLED;
}