You are here

public function WSConnectorBase::expires in Web Service Data 8

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

Get the expired time for caching.

File

src/Plugin/WSConnectorBase.php, line 145

Class

WSConnectorBase
Base class for Wsconnector plugin plugins.

Namespace

Drupal\wsdata\Plugin

Code

public function expires() {
  if ($this->expires > 0) {
    return $this->expires;
  }
  else {
    return FALSE;
  }
}