Field::setFieldtype() method

Set what type of field this is (Fieldtype).

Usage

$field = $field->setFieldtype($type);

Arguments

NameType(s)Description
$typestring 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


$field methods and properties

API reference based on ProcessWire core version 3.0.251