fieldTypeFormFields
fieldTypeFormFields(string $fieldName, string|ModelFieldType $fieldType)
This function is really just a facade function to call all the 4 functions at once:
- fieldTypeAddForm
- fieldTypeEditForm
- fieldTypeReadForm
- fieldTypeCloneForm
Example
For example the below code:
$crud->fieldTypeFormFields('date_birth_year', 'numeric');
is exactly the same as:
$crud->fieldTypeAddForm('date_birth_year', 'numeric');
$crud->fieldTypeEditForm('date_birth_year', 'numeric');
$crud->fieldTypeReadForm('date_birth_year', 'numeric');
$crud->fieldTypeCloneForm('date_birth_year', 'numeric');