You are here

public function TestMemoryBackend::getRequestTime in Search API 8

Wrapper method for REQUEST_TIME constant.

Return value

int

Overrides MemoryBackend::getRequestTime

File

tests/src/Kernel/Views/TestMemoryBackend.php, line 22

Class

TestMemoryBackend
A variant of the memory cache backend that allows to change the request time.

Namespace

Drupal\Tests\search_api\Kernel\Views

Code

public function getRequestTime() {
  return $this->requestTime ?: parent::getRequestTime();
}