public function WSCall::setOptions in Web Service Data 8
Same name and namespace in other branches
- 2.0.x src/Entity/WSCall.php \Drupal\wsdata\Entity\WSCall::setOptions()
Doesn't save the WSCall though.
Overrides WSCallInterface::setOptions
File
- src/
Entity/ WSCall.php, line 242
Class
- WSCall
- Defines the Web Service Call entity.
Namespace
Drupal\wsdata\EntityCode
public function setOptions($values = []) {
if (!isset($this->wsserverInst)) {
$this->wsserverInst = \Drupal::service('entity_type.manager')
->getStorage('wsserver')
->load($values['wsserver']);
}
$this->options[$this->wsserver] = $this->wsserverInst->wsconnectorInst
->saveOptions($values);
$this->needSave = TRUE;
}