You are here

public function Standalone::buildConfigurationForm in Entity Browser 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/EntityBrowser/Display/Standalone.php \Drupal\entity_browser\Plugin\EntityBrowser\Display\Standalone::buildConfigurationForm()

Implements PluginFormInterface::buildConfigurationForm().

Overrides PluginConfigurationFormTrait::buildConfigurationForm

File

src/Plugin/EntityBrowser/Display/Standalone.php, line 24

Class

Standalone
Presents entity browser as a standalone form.

Namespace

Drupal\entity_browser\Plugin\EntityBrowser\Display

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
  $form['path'] = [
    '#type' => 'textfield',
    '#title' => $this
      ->t('Path'),
    '#required' => TRUE,
    '#description' => $this
      ->t('The path at which the browser will be accessible. Must begin with a forward slash.'),
    '#default_value' => $this->configuration['path'],
  ];
  return $form;
}