You are here

public function WSConnectorLocalFile::getOptionsForm in Web Service Data 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/WSConnector/WSConnectorLocalFile.php \Drupal\wsdata\Plugin\WSConnector\WSConnectorLocalFile::getOptionsForm()

Return the settings form provided by the connector.

Overrides WSConnectorBase::getOptionsForm

File

src/Plugin/WSConnector/WSConnectorLocalFile.php, line 37

Class

WSConnectorLocalFile
Local file connector.

Namespace

Drupal\wsdata\Plugin\WSConnector

Code

public function getOptionsForm($options = []) {
  return [
    'filename' => [
      '#title' => $this
        ->t('Filename'),
      '#type' => 'textfield',
    ],
    'readonly' => [
      '#title' => $this
        ->t('Prevent writing to this file.'),
      '#type' => 'checkbox',
    ],
  ];
}