Automattic\WooCommerce\Vendor\GraphQL\Type\Definition
InputObjectType::getField
Method of the class: InputObjectType{}
No Hooks.
Returns
null. Nothing (null).
Usage
$InputObjectType = new InputObjectType(); $InputObjectType->getField( $name ): InputObjectField;
- $name(string) (required)
- .
InputObjectType::getField() InputObjectType::getField code WC 11.1.2
public function getField(string $name): InputObjectField
{
$field = $this->findField($name);
if ($field === null) {
throw new InvariantViolation("Field \"{$name}\" is not defined for type \"{$this->name}\"");
}
return $field;
}