public function Database::setDateFormatter in Search API 8
Sets the date formatter.
Parameters
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The new date formatter.
Return value
$this
File
- modules/
search_api_db/ src/ Plugin/ search_api/ backend/ Database.php, line 356
Class
- Database
- Indexes and searches items using the database.
Namespace
Drupal\search_api_db\Plugin\search_api\backendCode
public function setDateFormatter(DateFormatterInterface $date_formatter) {
$this->dateFormatter = $date_formatter;
return $this;
}