You are here

public function WSConnectorGraphQL::getCache in Web Service Data 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/WSConnector/WSConnectorGraphQL.php \Drupal\wsdata\Plugin\WSConnector\WSConnectorGraphQL::getCache()

Return cache cid for cases cache rules change.

Overrides WSConnectorBase::getCache

File

src/Plugin/WSConnector/WSConnectorGraphQL.php, line 149

Class

WSConnectorGraphQL
HTTP Connector.

Namespace

Drupal\wsdata\Plugin\WSConnector

Code

public function getCache() {
  return $this->language_manager
    ->getCurrentLanguage(LanguageInterface::TYPE_CONTENT)
    ->getId();
}