protected function AssetRefreshManager::getStartTime in Media: Acquia DAM 8
Returns the "Start Time" Drupal State value.
As a query parameter, filters out all older (by date created) items in Notifications API.
Return value
int Timestamp.
1 call to AssetRefreshManager::getStartTime()
- AssetRefreshManager::getAssetIds in src/
Service/ AssetRefreshManager.php - Returns the most recent media asset ids.
File
- src/
Service/ AssetRefreshManager.php, line 331
Class
- AssetRefreshManager
- Class AssetRefreshManager.
Namespace
Drupal\media_acquiadam\ServiceCode
protected function getStartTime() : int {
$start_time_timestamp = $this->state
->get('media_acquiadam.notifications_starttime');
if ($start_time_timestamp) {
return $start_time_timestamp;
}
// Setting up the default value.
$default_start_time_timestamp = $this->time
->getRequestTime() - $this
->getLastReadInterval();
$this
->saveStartTime($default_start_time_timestamp);
return $default_start_time_timestamp;
}