1 | <?php |
||
25 | class Upload extends WidgetBase { |
||
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | public function defaultConfiguration() { |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function getForm(array &$original_form, FormStateInterface $form_state, array $aditional_widget_parameters) { |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function prepareEntities(FormStateInterface $form_state) { |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function submit(array &$element, array &$form, FormStateInterface $form_state) { |
||
71 | |||
72 | /** |
||
73 | * Clear values from upload form element. |
||
74 | * |
||
75 | * @param array $element |
||
76 | * Upload form element. |
||
77 | * @param \Drupal\Core\Form\FormStateInterface $form_state |
||
78 | * Form state object. |
||
79 | */ |
||
80 | protected function clearFormValues(array &$element, FormStateInterface $form_state) { |
||
86 | |||
87 | /** |
||
88 | * @param FormStateInterface $form_state |
||
89 | * Form state object. |
||
90 | * |
||
91 | * @return \Drupal\file\FileInterface[] |
||
92 | * Array of files. |
||
93 | */ |
||
94 | protected function extractFiles(FormStateInterface $form_state) { |
||
106 | |||
107 | /** |
||
108 | * {@inheritdoc} |
||
109 | */ |
||
110 | public function buildConfigurationForm(array $form, FormStateInterface $form_state) { |
||
119 | |||
120 | } |
||
121 |