You are here

public function Basic::getTimeService in Search API 8

Retrieves the time service.

Return value

\Drupal\Component\Datetime\TimeInterface The time service.

File

src/Plugin/search_api/tracker/Basic.php, line 95

Class

Basic
Provides a tracker implementation which uses a FIFO-like processing order.

Namespace

Drupal\search_api\Plugin\search_api\tracker

Code

public function getTimeService() {
  return $this->timeService ?: \Drupal::time();
}