public function CalendarValidator::__construct in Calendar 8
Same name and namespace in other branches
- 8.2 src/Plugin/views/argument_validator/CalendarValidator.php \Drupal\calendar\Plugin\views\argument_validator\CalendarValidator::__construct()
Constructs a PluginBase object.
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.
Overrides PluginBase::__construct
File
- src/
Plugin/ views/ argument_validator/ CalendarValidator.php, line 41
Class
- CalendarValidator
- Defines a argument validator plugin for Date arguments used in Calendar.
Namespace
Drupal\calendar\Plugin\views\argument_validatorCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, DateFormatterInterface $dateFormatter) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->dateFormatter = $dateFormatter;
}