You are here

public function WSConnectorBase::saveOptions in Web Service Data 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/WSConnectorBase.php \Drupal\wsdata\Plugin\WSConnectorBase::saveOptions()

Saves the options form.

1 call to WSConnectorBase::saveOptions()
WSConnectorSimpleHTTP::saveOptions in src/Plugin/WSConnector/WSConnectorSimpleHTTP.php
Saves the options form.
1 method overrides WSConnectorBase::saveOptions()
WSConnectorSimpleHTTP::saveOptions in src/Plugin/WSConnector/WSConnectorSimpleHTTP.php
Saves the options form.

File

src/Plugin/WSConnectorBase.php, line 181

Class

WSConnectorBase
Base class for Wsconnector plugin plugins.

Namespace

Drupal\wsdata\Plugin

Code

public function saveOptions($values) {
  $options = [];
  foreach (array_keys($this
    ->getOptionsForm()) as $option) {
    if (isset($values[$option])) {
      $options[$option] = $values[$option];
    }
  }
  return $options;
}