public function VisitorGeolocation::getCacheMaxAge in Smart IP 8.3
Same name and namespace in other branches
- 8.4 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\BlockCode
public function getCacheMaxAge() {
// No caching.
$max_age = 0;
return $max_age;
}