public function Date::__construct in CiviCRM Entity 8.3
Same name in this branch
- 8.3 src/Plugin/views/filter/Date.php \Drupal\civicrm_entity\Plugin\views\filter\Date::__construct()
- 8.3 src/Plugin/views/argument/Date.php \Drupal\civicrm_entity\Plugin\views\argument\Date::__construct()
Constructs a new Date instance.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
Overrides Date::__construct
File
- src/
Plugin/ views/ argument/ Date.php, line 21
Class
- Date
- Argument handler for CiviCRM dates.
Namespace
Drupal\civicrm_entity\Plugin\views\argumentCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteMatchInterface $route_match, DateFormatterInterface $date_formatter) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $route_match, $date_formatter);
$this->argFormat = 'Y-m-d h:i:s';
}