public function SearchApiDate::setDateFormatter in Search API 8
Sets the date formatter.
Parameters
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The new date formatter.
Return value
$this
File
- src/
Plugin/ views/ argument/ SearchApiDate.php, line 55
Class
- SearchApiDate
- Defines a contextual filter for conditions on date fields.
Namespace
Drupal\search_api\Plugin\views\argumentCode
public function setDateFormatter(DateFormatterInterface $date_formatter) {
$this->dateFormatter = $date_formatter;
return $this;
}