| 1 | <?php |
||
| 23 | class Standalone extends DisplayBase implements DisplayRouterInterface { |
||
| 24 | |||
| 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} |
||
| 42 | */ |
||
| 43 | public function defaultConfiguration() { |
||
| 44 | return [ |
||
| 45 | 'path' => '', |
||
| 46 | ]; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | public function displayEntityBrowser(FormStateInterface $form_state) { |
||
| 55 | |||
| 56 | /** |
||
| 57 | * {@inheritdoc} |
||
| 58 | */ |
||
| 59 | public function selectionCompleted(array $entities) { |
||
| 62 | |||
| 63 | /** |
||
| 64 | * {@inheritdoc} |
||
| 65 | */ |
||
| 66 | public function path() { |
||
| 69 | |||
| 70 | /** |
||
| 71 | * {@inheritdoc} |
||
| 72 | */ |
||
| 73 | public function getUuid() { |
||
| 76 | |||
| 77 | /** |
||
| 78 | * {@inheritdoc} |
||
| 79 | */ |
||
| 80 | public function setUuid($uuid) { |
||
| 83 | |||
| 84 | } |
||
| 85 |