You are here

public function PhotosInformation::getCacheMaxAge in Album Photos 8.5

Same name and namespace in other branches
  1. 8.4 src/Plugin/Block/PhotosInformation.php \Drupal\photos\Plugin\Block\PhotosInformation::getCacheMaxAge()
  2. 6.0.x src/Plugin/Block/PhotosInformation.php \Drupal\photos\Plugin\Block\PhotosInformation::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

src/Plugin/Block/PhotosInformation.php, line 171

Class

PhotosInformation
Provides a 'Photo information' block.

Namespace

Drupal\photos\Plugin\Block

Code

public function getCacheMaxAge() {

  // @todo look into cache_context service.
  return 0;
}