public function WSConnectorLocalFile::getOptionsForm in Web Service Data 8
Same name and namespace in other branches
- 2.0.x 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\WSConnectorCode
public function getOptionsForm($options = []) {
return [
'filename' => [
'#title' => $this
->t('Filename'),
'#type' => 'textfield',
],
'readonly' => [
'#title' => $this
->t('Prevent writing to this file.'),
'#type' => 'checkbox',
],
];
}