src/Forms/Fields/Types/ButtonType.php
public function getDefaultOptions(): array
    {
        $options = parent::getDefaultOptions();

        // Check the "type" attribute. If it is not set,
        // let's define it by default to "submit".
        if (! isset($options['attributes']['type'])) {
            $options['attributes']['type'] = 'submit';
        }

        // By default, disable button field type to be mapped
        // to a data object.
        $options['mapped'] = false;

        return $options;
    }
public function getDefaultOptions(): array
    {
        $options = parent::getDefaultOptions();

        // Check the "type" attribute. If it is not set,
        // let's define it by default to "submit".
        if (! isset($options['attributes']['type'])) {
            $options['attributes']['type'] = 'submit';
        }

        // By default, disable button field type to be mapped
        // to a data object.
        $options['mapped'] = false;

        return $options;
    }
public function getDefaultOptions ( ) : array { $ options = parent :: getDefaultOptions ( ) ; // Check the "type" attribute. If it is not set, // let's define it by default to "submit". if ( ! isset ( $ options [ 'attributes' ] [ 'type' ] ) ) { $ options [ 'attributes' ] [ 'type' ] = 'submit' ; } // By default, disable button field type to be mapped // to a data object. $ options [ 'mapped' ] = false ; return $ options ; }
Get default button options.

@return array
Get default button options .