public function Standalone::buildConfigurationForm in Entity Browser 8
Same name and namespace in other branches
- 8.2 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\DisplayCode
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;
}