public function WSCall::addData in Web Service Data 2.0.x
Same name and namespace in other branches
- 8 src/Entity/WSCall.php \Drupal\wsdata\Entity\WSCall::addData()
1 call to WSCall::addData()
- WSCall::call in src/
Entity/ WSCall.php - Make the web service call.
File
- src/
Entity/ WSCall.php, line 303
Class
- WSCall
- Defines the Web Service Call entity.
Namespace
Drupal\wsdata\EntityCode
public function addData($data, $context = []) {
if (!isset($this->wsdecoderInst)) {
$wsdecoderManager = \Drupal::service('plugin.manager.wsdecoder');
$this->wsdecoderInst = $wsdecoderManager
->createInstance($this->wsdecoder);
}
return $this->wsdecoderInst
->addData($data, NULL, $context);
}