1 | <?php |
||
23 | class StaticControlExtension extends AbstractTypeExtension |
||
24 | { |
||
25 | /** |
||
26 | * {@inheritDoc} |
||
27 | */ |
||
28 | public function buildView(FormView $view, FormInterface $form, array $options) |
||
32 | |||
33 | /** |
||
34 | * Add the static_control option |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function configureOptions(OptionsResolver $resolver) |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function buildForm(FormBuilderInterface $builder, array $options) |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | * Although we only support a field that provides a somewhat text-value we extend the form field. |
||
57 | * (to be more precise: all fields which will be rendered as form_widget_simple) |
||
58 | * If not we would have to create for every of the text-based types an own extension class. |
||
59 | * This way we also support new text-based types out of the box. |
||
60 | */ |
||
61 | public function getExtendedType() |
||
66 | } |
||
67 |