You are here

public function WSConnectorSimpleHTTP::getMethods in Web Service Data 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/WSConnector/WSConnectorSimpleHTTP.php \Drupal\wsdata\Plugin\WSConnector\WSConnectorSimpleHTTP::getMethods()

Return available methods supported by the connector.

Overrides WSConnectorBase::getMethods

2 calls to WSConnectorSimpleHTTP::getMethods()
WSConnectorSimpleHTTP::call in src/Plugin/WSConnector/WSConnectorSimpleHTTP.php
Make the connector call.
WSConnectorSimpleHTTP::getOptionsForm in src/Plugin/WSConnector/WSConnectorSimpleHTTP.php
Return the settings form provided by the connector.
2 methods override WSConnectorSimpleHTTP::getMethods()
WSConnectorGraphQL::getMethods in src/Plugin/WSConnector/WSConnectorGraphQL.php
Return available methods supported by the connector.
WSConnectorSOAP::getMethods in src/Plugin/WSConnector/WSConnectorSOAP.php
Return available methods supported by the connector.

File

src/Plugin/WSConnector/WSConnectorSimpleHTTP.php, line 53

Class

WSConnectorSimpleHTTP
HTTP Connector.

Namespace

Drupal\wsdata\Plugin\WSConnector

Code

public function getMethods() {
  return [
    'get',
    'post',
    'put',
    'delete',
    'head',
    'options',
  ];
}