Automattic\WooCommerce\Vendor\GraphQL\Type\Definition
QueryPlan::hasField
Method of the class: QueryPlan{}
No Hooks.
Returns
null. Nothing (null).
Usage
$QueryPlan = new QueryPlan(); $QueryPlan->hasField( $field ): bool;
- $field(string) (required)
- .
QueryPlan::hasField() QueryPlan::hasField code WC 10.9.4
public function hasField(string $field): bool
{
foreach ($this->typeToFields as $fields) {
if (array_key_exists($field, $fields)) {
return true;
}
}
return false;
}