public function WSCall::addData in Web Service Data 8
Same name and namespace in other branches
- 2.0.x 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 295
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);
}