public function ViewsDateFormatSqlArgument::getFormula in Views Date Format SQL 8.3
1 call to ViewsDateFormatSqlArgument::getFormula()
- ViewsDateFormatSqlArgument::query in src/
Plugin/ views/ argument/ ViewsDateFormatSqlArgument.php - Set up the query for this argument.
File
- src/
Plugin/ views/ argument/ ViewsDateFormatSqlArgument.php, line 22
Class
- ViewsDateFormatSqlArgument
- An argument that filters entity timestamp field data.
Namespace
Drupal\views_date_format_sql\Plugin\views\argumentCode
public function getFormula() {
$formula = $this->query
->getDateFormat("FROM_UNIXTIME({$this->tableAlias}.{$this->realField})", $this->options['format_string']);
return $formula;
}