You are here

public function VisitorGeolocation::getCacheMaxAge in Smart IP 8.4

Same name and namespace in other branches
  1. 8.3 modules/device_geolocation/src/Plugin/Block/VisitorGeolocation.php \Drupal\device_geolocation\Plugin\Block\VisitorGeolocation::getCacheMaxAge()

The maximum age for which this object may be cached.

Return value

int The maximum time in seconds that this object may be cached.

Overrides ContextAwarePluginBase::getCacheMaxAge

File

modules/device_geolocation/src/Plugin/Block/VisitorGeolocation.php, line 34

Class

VisitorGeolocation
Defines Device Geolocation block plugins.

Namespace

Drupal\device_geolocation\Plugin\Block

Code

public function getCacheMaxAge() {

  // No caching.
  $max_age = 0;
  return $max_age;
}