public function getDefaultValues()
    {
        $result = [];

        foreach ($this->getFormFields() as $attribute => $field) {
            if (($value = array_get($field, 'default')) === null) {
                continue;
            }

            $result[$attribute] = $value;
        }

        return $result;
    }
public function getDefaultValues()
    {
        $result = [];

        foreach ($this->getFormFields() as $attribute => $field) {
            if (($value = array_get($field, 'default')) === null) {
                continue;
            }

            $result[$attribute] = $value;
        }

        return $result;
    }
public function getDefaultValues ( ) { $ result = [ ] ; foreach ( $ this -> getFormFields ( ) as $ attribute => $ field ) { if ( ( $ value = array_get ( $ field , 'default' ) ) === null ) { continue ; } $ result [ $ attribute ] = $ value ; } return $ result ; }
Gets default values for this model based on form field definitions.
@return array
Gets default values for this model based on form field definitions .