public function WSConnectorSimpleHTTP::supportsCaching in Web Service Data 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/WSConnector/WSConnectorSimpleHTTP.php \Drupal\wsdata\Plugin\WSConnector\WSConnectorSimpleHTTP::supportsCaching()
Whether returned data can be cached.
Overrides WSConnectorBase::supportsCaching
1 call to WSConnectorSimpleHTTP::supportsCaching()
- WSConnectorSimpleHTTP::call in src/
Plugin/ WSConnector/ WSConnectorSimpleHTTP.php - Make the connector call.
File
- src/
Plugin/ WSConnector/ WSConnectorSimpleHTTP.php, line 278
Class
- WSConnectorSimpleHTTP
- HTTP Connector.
Namespace
Drupal\wsdata\Plugin\WSConnectorCode
public function supportsCaching($method = NULL) {
// If the request is a GET support caching.
if (in_array($method, [
'get',
])) {
return TRUE;
}
else {
return FALSE;
}
}