You are here

protected function AssetRefreshManager::getEndTime in Media: Acquia DAM 8

Returns the "End Time" Drupal State value.

As a query parameter, filters out all newer (by date created, inclusively) items in Notifications API.

Return value

int Timestamp.

2 calls to AssetRefreshManager::getEndTime()
AssetRefreshManager::getAssetIds in src/Service/AssetRefreshManager.php
Returns the most recent media asset ids.
AssetRefreshManager::updateQueue in src/Service/AssetRefreshManager.php
Updates the asset refresh queue.

File

src/Service/AssetRefreshManager.php, line 363

Class

AssetRefreshManager
Class AssetRefreshManager.

Namespace

Drupal\media_acquiadam\Service

Code

protected function getEndTime() : ?int {
  return $this->state
    ->get('media_acquiadam.notifications_endtime', $this->time
    ->getRequestTime());
}