You are here

public function MetatagViewsCacheWrapper::getCacheMaxAge in Metatag 8

Gets the max age for the current view.

Return value

int

Overrides CachePluginBase::getCacheMaxAge

File

metatag_views/src/MetatagViewsCacheWrapper.php, line 158

Class

MetatagViewsCacheWrapper
This class wraps a Views cache plugin.

Namespace

Drupal\metatag_views

Code

public function getCacheMaxAge() {
  return $this->plugin
    ->getCacheMaxAge();
}