fieldTypeFormFields

fieldTypeFormFields(string $fieldName, string|ModelFieldType $fieldType)

This function is really just a facade function to call all the 4 functions at once:

  1. fieldTypeAddForm
  2. fieldTypeEditForm
  3. fieldTypeReadForm
  4. 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');