function Test::buildConfigurationForm

Same name in other branches
  1. 9 core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/Test.php \Drupal\media_test_source\Plugin\media\Source\Test::buildConfigurationForm()
  2. 8.9.x core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/Test.php \Drupal\media_test_source\Plugin\media\Source\Test::buildConfigurationForm()
  3. 11.x core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/Test.php \Drupal\media_test_source\Plugin\media\Source\Test::buildConfigurationForm()

Overrides MediaSourceBase::buildConfigurationForm

File

core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/Test.php, line 77

Class

Test
Provides test media source.

Namespace

Drupal\media_test_source\Plugin\media\Source

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
    $form = parent::buildConfigurationForm($form, $form_state);
    $form['test_config_value'] = [
        '#type' => 'textfield',
        '#title' => $this->t('Test config value'),
        '#default_value' => $this->configuration['test_config_value'],
    ];
    return $form;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.