You are here

public function Basic::setTimeService in Search API 8

Sets the time service.

Parameters

\Drupal\Component\Datetime\TimeInterface $time_service: The new time service.

Return value

$this

File

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

Class

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

Namespace

Drupal\search_api\Plugin\search_api\tracker

Code

public function setTimeService(TimeInterface $time_service) {
  $this->timeService = $time_service;
  return $this;
}