Sunnysideup\Ecommerce\Model\Address\OrderAddress::scaffoldSearchFields
Determine which properties on the DataObject are searchable, and map them to their default {@link FormField} representations. Used for scaffolding a searchform for {@link ModelAdmin}.
Some additional logic is included for switching field labels, based on how generic or specific the field type is. Used by .
Signature
public function scaffoldSearchFields([array
$_params = NULL] )
Parameters
$_params
— array
'fieldClasses': Associative array of field names as keys and FormField classes as values
'restrictFields': Numeric array of a field name whitelist
Returns
- FieldList