You are here

public function AssetRefreshManager::setLastReadInterval in Media: Acquia DAM 8

Set the request read interval.

Parameters

int $lastReadInterval: The new request read interval value. Minimum of 1.

Return value

int The old request read interval.

Overrides AssetRefreshManagerInterface::setLastReadInterval

File

src/Service/AssetRefreshManager.php, line 274

Class

AssetRefreshManager
Class AssetRefreshManager.

Namespace

Drupal\media_acquiadam\Service

Code

public function setLastReadInterval(int $lastReadInterval = 43200) : int {
  $old_interval = $this
    ->getLastReadInterval();
  $this->lastReadInterval = max(1, $lastReadInterval);
  return $old_interval;
}