You are here

public function File::settingsForm in Freelinking 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/freelinking/File.php \Drupal\freelinking\Plugin\freelinking\File::settingsForm()

Plugin configuration form.

Parameters

array $form: The form element array for the filter plugin.

\Drupal\Core\Form\FormStateInterface $form_state: The form state of the parent form.

Return value

array The configuration form to attach to Freelinking settings form.

Overrides FreelinkingPluginBase::settingsForm

File

src/Plugin/freelinking/File.php, line 101

Class

File
Freelinking file plugin.

Namespace

Drupal\freelinking\Plugin\freelinking

Code

public function settingsForm(array $form, FormStateInterface $form_state) {
  $element = [];
  $element['scheme'] = [
    '#type' => 'select',
    '#title' => $this
      ->t('File System'),
    '#description' => $this
      ->t('Choose the file system to use to lookup files.'),
    '#options' => $this
      ->getSchemeOptions(),
  ];
  return $element;
}