You are here

public function MysqlDate::__construct in Views Custom Table 8

Same name in this branch
  1. 8 src/Plugin/views/filter/MysqlDate.php \Drupal\view_custom_table\Plugin\views\filter\MysqlDate::__construct()
  2. 8 src/Plugin/views/field/MysqlDate.php \Drupal\view_custom_table\Plugin\views\field\MysqlDate::__construct()
Same name and namespace in other branches
  1. 9.0.x src/Plugin/views/filter/MysqlDate.php \Drupal\view_custom_table\Plugin\views\filter\MysqlDate::__construct()

WebformSubmissionFieldFilter constructor.

Overrides HandlerBase::__construct

File

src/Plugin/views/filter/MysqlDate.php, line 51

Class

MysqlDate
Filter to handle dates stored as a datetime.

Namespace

Drupal\view_custom_table\Plugin\views\filter

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, TimeInterface $time, DateFormatterInterface $date_formatter) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->time = $time;
  $this->dateFormatter = $date_formatter;
}