class ButtonType extendsBaseType implementsButtonTypeInterface

A form button.

Methods

string|null
getParent()

Returns the name of the parent type.

string
getBlockPrefix()

Returns the prefix of the template block name for this type.

void
configureOptions(OptionsResolver$resolver)

Configures the options for this type.

Details

string|null getParent()

Returns the name of the parent type.

The parent type and its extensions will configure the form with the following methods before the current implementation.

Return Value

string|null

string getBlockPrefix()

Returns the prefix of the template block name for this type.

The block prefix defaults to the underscored short class name with the "Type" suffix removed (e.g. "UserProfileType" => "user_profile").

Return Value

string

void configureOptions(OptionsResolver$resolver)

Configures the options for this type.

Parameters

OptionsResolver $resolver

Return Value

void