Per the WireArray interface, keys must be strings (fieldtype class names)
Template method that descendant classes may use to validate the key of items added to this WireArray
Usage
$bool = $fieldtypes->isValidKey($key);
Arguments
Name | Type(s) | Description |
---|---|---|
key | string, int | Key to test |
Return value
bool
True if key is valid and may be used, false if not
$fieldtypes methods and properties
API reference based on ProcessWire core version 3.0.236