4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Form
;
14 use Symfony\Component\OptionsResolver\OptionsResolverInterface
;
17 * @author Bernhard Schussek <bschussek@gmail.com>
19 interface FormTypeExtensionInterface
24 * This method is called after the extended type has built the form to
27 * @see FormTypeInterface::buildForm()
29 * @param FormBuilderInterface $builder The form builder
30 * @param array $options The options
32 public function buildForm(FormBuilderInterface
$builder, array $options);
37 * This method is called after the extended type has built the view to
40 * @see FormTypeInterface::buildView()
42 * @param FormView $view The view
43 * @param FormInterface $form The form
44 * @param array $options The options
46 public function buildView(FormView
$view, FormInterface
$form, array $options);
51 * This method is called after the extended type has finished the view to
54 * @see FormTypeInterface::finishView()
56 * @param FormView $view The view
57 * @param FormInterface $form The form
58 * @param array $options The options
60 public function finishView(FormView
$view, FormInterface
$form, array $options);
63 * Overrides the default options from the extended type.
65 * @param OptionsResolverInterface $resolver The resolver for the options.
67 public function setDefaultOptions(OptionsResolverInterface
$resolver);
70 * Returns the name of the type being extended.
72 * @return string The name of the type being extended
74 public function getExtendedType();