$fieldsgetFieldtype()

Get a Fieldtype

This is an alternative to $fieldtypes->get($name) or $modules->get($name) and it also accepts short Fieldtype names like 'text' or 'repeater', etc., in addition to full Fieldtype names, i.e. 'FieldtypeText', 'FieldtypeRepeater', etc.

Available since version 3.0.258.

Usage

$fieldtype = $fields->getFieldtype(string $name);

Arguments

NameType(s)Description
$namestring

Return value


$fields methods and properties

API reference based on ProcessWire core version 3.0.259