You are here

public function BynderWidgetBase::buildConfigurationForm in Bynder 8.3

Same name and namespace in other branches
  1. 8 src/Plugin/EntityBrowser/Widget/BynderWidgetBase.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderWidgetBase::buildConfigurationForm()
  2. 8.2 src/Plugin/EntityBrowser/Widget/BynderWidgetBase.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderWidgetBase::buildConfigurationForm()
  3. 4.0.x 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\Widget

Code

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;
}