protected function AssetRefreshManager::saveEndTime in Media: Acquia DAM 8
Saves the "End Time" Drupal State value.
Parameters
int $timestamp: Timestamp.
See also
\Drupal\media_acquiadam\Service\AssetRefreshManager::resetEndTime()
1 call to AssetRefreshManager::saveEndTime()
- AssetRefreshManager::getAssetIds in src/
Service/ AssetRefreshManager.php - Returns the most recent media asset ids.
File
- src/
Service/ AssetRefreshManager.php, line 375
Class
- AssetRefreshManager
- Class AssetRefreshManager.
Namespace
Drupal\media_acquiadam\ServiceCode
protected function saveEndTime(int $timestamp) {
if ($this->state
->get('media_acquiadam.notifications_endtime')) {
// Do not override the state if previously was set to non-zero value.
return;
}
$this->state
->set('media_acquiadam.notifications_endtime', $timestamp);
}