Cake\View\Helper\FormHelper::allInputs PHP Method

allInputs() public method

You can customize individual inputs through $fields. $this->Form->allInputs([ 'name' => ['label' => 'custom label'] ]); You can exclude fields by specifying them as false: $this->Form->allInputs(['title' => false]); In the above example, no field would be generated for the title field.
public allInputs ( array $fields = [], array $options = [] ) : string
$fields array An array of customizations for the fields that will be generated. This array allows you to set custom types, labels, or other options.
$options array Options array. Valid keys are: - `fieldset` Set to false to disable the fieldset. You can also pass an array of params to be applied as HTML attributes to the fieldset tag. If you pass an empty array, the fieldset will be enabled - `legend` Set to false to disable the legend for the generated input set. Or supply a string to customize the legend text.
return string Completed form inputs.
    public function allInputs(array $fields = [], array $options = [])
    {
        $context = $this->_getContext();
        $modelFields = $context->fieldNames();
        $fields = array_merge(Hash::normalize($modelFields), Hash::normalize($fields));
        return $this->inputs($fields, $options);
    }