public function BynderWidgetBase::buildConfigurationForm in Bynder 4.0.x
Same name and namespace in other branches
- 8.3 src/Plugin/EntityBrowser/Widget/BynderWidgetBase.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderWidgetBase::buildConfigurationForm()
- 8 src/Plugin/EntityBrowser/Widget/BynderWidgetBase.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderWidgetBase::buildConfigurationForm()
- 8.2 src/Plugin/EntityBrowser/Widget/BynderWidgetBase.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderWidgetBase::buildConfigurationForm()
2 calls to BynderWidgetBase::buildConfigurationForm()
- BynderSearch::buildConfigurationForm in src/
Plugin/ EntityBrowser/ Widget/ BynderSearch.php - BynderUpload::buildConfigurationForm in src/
Plugin/ EntityBrowser/ Widget/ BynderUpload.php
2 methods override BynderWidgetBase::buildConfigurationForm()
- BynderSearch::buildConfigurationForm in src/
Plugin/ EntityBrowser/ Widget/ BynderSearch.php - BynderUpload::buildConfigurationForm in src/
Plugin/ EntityBrowser/ Widget/ BynderUpload.php
File
- src/
Plugin/ EntityBrowser/ Widget/ BynderWidgetBase.php, line 128
Class
- BynderWidgetBase
- Base class for Bynder Entity browser widgets.
Namespace
Drupal\bynder\Plugin\EntityBrowser\WidgetCode
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form = parent::buildConfigurationForm($form, $form_state);
$form['media_type'] = [
'#type' => 'select',
'#title' => $this
->t('Media type'),
'#default_value' => $this->configuration['media_type'],
'#required' => TRUE,
'#options' => [],
];
return $form;
}