src/Plugin/EntityBrowser/Display/Standalone.php 1 location
|
@@ 28-38 (lines=11) @@
|
25 |
|
/** |
26 |
|
* {@inheritdoc} |
27 |
|
*/ |
28 |
|
public function buildConfigurationForm(array $form, FormStateInterface $form_state) { |
29 |
|
$form['path'] = [ |
30 |
|
'#type' => 'textfield', |
31 |
|
'#title' => $this->t('Path'), |
32 |
|
'#required' => TRUE, |
33 |
|
'#description' => $this->t('The path at which the browser will be accessible. Must begin with a forward slash.'), |
34 |
|
'#default_value' => $this->configuration['path'], |
35 |
|
]; |
36 |
|
|
37 |
|
return $form; |
38 |
|
} |
39 |
|
|
40 |
|
/** |
41 |
|
* {@inheritdoc} |
src/Plugin/EntityBrowser/Widget/Upload.php 1 location
|
@@ 90-101 (lines=12) @@
|
87 |
|
/** |
88 |
|
* {@inheritdoc} |
89 |
|
*/ |
90 |
|
public function getForm(array &$original_form, FormStateInterface $form_state, array $aditional_widget_parameters) { |
91 |
|
$form = []; |
92 |
|
$form['upload'] = [ |
93 |
|
'#type' => 'managed_file', |
94 |
|
'#title' => t('Choose a file'), |
95 |
|
'#title_display' => 'invisible', |
96 |
|
'#upload_location' => $this->token->replace($this->configuration['upload_location']), |
97 |
|
'#multiple' => TRUE, |
98 |
|
]; |
99 |
|
|
100 |
|
return $form; |
101 |
|
} |
102 |
|
|
103 |
|
/** |
104 |
|
* {@inheritdoc} |