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