Per WireArray interface, items added to Fieldtypes must be Fieldtype instances
Template method that descending classes may use to validate items added to this WireArray
Usage
$bool = $fieldtypes->isValidItem($item);
Arguments
Name | Type(s) | Description |
---|---|---|
item | Wire, Fieldtype | Item to test for validity |
Return value
bool
True if item is valid and may be added, false if not
$fieldtypes methods and properties
API reference based on ProcessWire core version 3.0.236