You are here

public function SiteAlertStorageInterface::getCacheMaxAge in Site Alert 8

Returns the max age for elements that display site alerts.

Return value

int The time in seconds until the next alert is scheduled to appear or disappear, or -1 if there are no scheduled alerts.

1 method overrides SiteAlertStorageInterface::getCacheMaxAge()
SiteAlertStorage::getCacheMaxAge in src/SiteAlertStorage.php
Returns the max age for elements that display site alerts.

File

src/SiteAlertStorageInterface.php, line 27

Class

SiteAlertStorageInterface
Interface for SiteAlert entity storage handlers.

Namespace

Drupal\site_alert

Code

public function getCacheMaxAge();