Set what type of field this is (Fieldtype).
Usage
$field = $field->setFieldtype($type);
Arguments
Name | Type(s) | Description |
---|---|---|
type | string, Fieldtype | Type should be either a Fieldtype object or the string name of a Fieldtype object. |
Return value
Field
$this
Exceptions
Method can throw exceptions on error:
WireException
API reference based on ProcessWire core version 3.0.236