Set the field’s name
This method will throw a WireException when field name is a reserved word, is already in use, is a system field, or is in some format not accepted for a field name.
Usage
$field = $field->setName(string $name);
Arguments
Exceptions
Method can throw exceptions on error:
WireException
API reference based on ProcessWire core version 3.0.236