You are here

public function SearchApiDate::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/views/filter/SearchApiDate.php, line 44

Class

SearchApiDate
Defines a filter for filtering on dates.

Namespace

Drupal\search_api\Plugin\views\filter

Code

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