You are here

public function WSCall::getOptionsForm in Web Service Data 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/WSCall.php \Drupal\wsdata\Entity\WSCall::getOptionsForm()

Get the forms provided by the wsserver for the wscall.

Overrides WSCallInterface::getOptionsForm

File

src/Entity/WSCall.php, line 268

Class

WSCall
Defines the Web Service Call entity.

Namespace

Drupal\wsdata\Entity

Code

public function getOptionsForm($wsserver = NULL, $options = []) {
  if (isset($wsserver)) {
    $wsserverInst = \Drupal::service('entity_type.manager')
      ->getStorage('wsserver')
      ->load($wsserver);
    return $wsserverInst->wsconnectorInst
      ->getOptionsForm($options);
  }
  if (isset($this->wsserverInst->wsconnectorInst)) {
    return $this->wsserverInst->wsconnectorInst
      ->getOptionsForm($options);
  }
}