src/CrudKit/Data/ArrayDataProvider.php
protected function getRequiredFields()
    {
        $required = [];
        foreach($this->schema as $field => $fieldSchema) {
            if(isset($fieldSchema['options']['required']) && $fieldSchema['options']['required']) {
                $required[] = $field;
            }
        }
        return $required;
    }
protected function getRequiredFields()
    {
        $required = [];
        foreach($this->schema as $field => $fieldSchema) {
            if(isset($fieldSchema['options']['required']) && $fieldSchema['options']['required']) {
                $required[] = $field;
            }
        }
        return $required;
    }
protected function getRequiredFields ( ) { $ required = [ ] ; foreach ( $ this -> schema as $ field => $ fieldSchema ) { if ( isset ( $ fieldSchema [ 'options' ] [ 'required' ] ) && $ fieldSchema [ 'options' ] [ 'required' ] ) { $ required [ ] = $ field ; } } return $ required ; }
Returns an array of require field names

@return string[]
Returns an array of require field names