FieldsArray class

Located in file /wire/core/FieldsArray.php

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the FieldsArray class also inherits all the methods and properties of: WireArray and Wire.

Show class?             Show args?        

Common

NameReturnSummary 
getItemKey(Field $item)
intPer WireArray interface, Field instances are keyed by their ID 
isValidItem(Wire $item)
boolPer WireArray interface, only Field instances may be added 
isValidKey(int $key)
boolPer WireArray interface, Field keys have to be integers 
makeBlankItem()
FieldPer WireArray interface, return a blank Field 

Additional methods and properties

In addition to the methods and properties above, FieldsArray also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.244

“To Drupal, or to ProcessWire? The million dollar choice. We decided to make an early switch to PW. And in retrospect, ProcessWire was probably the best decision we made. Thanks are due to ProcessWire and the amazing system and set of modules that are in place.” —Unni Krishnan, Founder of PigtailPundits