ButtonTypeInterface

interface ButtonTypeInterface implements FormTypeInterface A type that should be converted into a {@link Button} instance. Methods buildForm(FormBuilderInterface $builder, array $options) Builds the form. from FormTypeInterface buildView(FormView $view, FormInterface $form, array $options) Builds the form view. from FormTypeInterface finishView(FormView $view, FormInterface $form, array $options) Finishes the form view. from FormTypeInterface setDefaultOptions(OptionsResolver

ButtonType::getParent()

string|null getParent() Returns the name of the parent type. Return Value string|null The name of the parent type if any, null otherwise

ButtonType::getBlockPrefix()

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 The prefix of the template block name

ButtonType::configureOptions()

configureOptions(OptionsResolver $resolver) Configures the options for this type. Parameters OptionsResolver $resolver The resolver for the options

ButtonType

class ButtonType extends BaseType implements ButtonTypeInterface A form button. Methods buildForm(FormBuilderInterface $builder, array $options) Builds the form. from BaseType buildView(FormView $view, FormInterface $form, array $options) Builds the form view. from BaseType finishView(FormView $view, FormInterface $form, array $options) Finishes the form view. from AbstractType configureOptions(OptionsResolver $resolver) Configures the options for this type. string getBl

ButtonBuilder::setType()

FormConfigBuilderInterface setType(ResolvedFormTypeInterface $type) Sets the type of the button. Parameters ResolvedFormTypeInterface $type The type of the form Return Value FormConfigBuilderInterface The configuration object

ButtonBuilder::setRequired()

FormConfigBuilderInterface setRequired(bool $required) Unsupported method. This method should not be invoked. Parameters bool $required Return Value FormConfigBuilderInterface The configuration object Exceptions BadMethodCallException

ButtonBuilder::setRequestHandler()

FormConfigBuilderInterface setRequestHandler(RequestHandlerInterface $requestHandler) Unsupported method. Parameters RequestHandlerInterface $requestHandler Return Value FormConfigBuilderInterface The configuration object Exceptions BadMethodCallException

ButtonBuilder::setPropertyPath()

FormConfigBuilderInterface setPropertyPath(null|string|PropertyPathInterface $propertyPath) Unsupported method. This method should not be invoked. Parameters null|string|PropertyPathInterface $propertyPath The property path or null if the path should be set automatically based on the form's name. Return Value FormConfigBuilderInterface The configuration object Exceptions BadMethodCallException

ButtonBuilder::setMethod()

FormConfigBuilderInterface setMethod(string $method) Unsupported method. Parameters string $method The HTTP method of the form Return Value FormConfigBuilderInterface The configuration object Exceptions BadMethodCallException