public function NotificationsWidgetBlock::getCacheMaxAge in Notifications widget 8
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/ NotificationsWidgetBlock.php, line 214
Class
- NotificationsWidgetBlock
- Provides a block with list of notification items.
Namespace
Drupal\notifications_widget\Plugin\BlockCode
public function getCacheMaxAge() {
return 0;
}