public function PhotosInformation::getCacheMaxAge in Album Photos 8.5
Same name and namespace in other branches
- 8.4 src/Plugin/Block/PhotosInformation.php \Drupal\photos\Plugin\Block\PhotosInformation::getCacheMaxAge()
- 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\BlockCode
public function getCacheMaxAge() {
// @todo look into cache_context service.
return 0;
}