public function Date::__construct in Display Suite 8.4
Same name and namespace in other branches
- 8.2 src/Plugin/DsField/Date.php \Drupal\ds\Plugin\DsField\Date::__construct()
- 8.3 src/Plugin/DsField/Date.php \Drupal\ds\Plugin\DsField\Date::__construct()
Constructs a Display Suite field plugin.
Overrides DsFieldBase::__construct
1 call to Date::__construct()
- NodeSubmittedBy::__construct in src/
Plugin/ DsField/ Node/ NodeSubmittedBy.php - Constructs a Display Suite field plugin.
1 method overrides Date::__construct()
- NodeSubmittedBy::__construct in src/
Plugin/ DsField/ Node/ NodeSubmittedBy.php - Constructs a Display Suite field plugin.
File
- src/
Plugin/ DsField/ Date.php, line 39
Class
- Date
- The base plugin to create DS post date plugins.
Namespace
Drupal\ds\Plugin\DsFieldCode
public function __construct($configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, DateFormatterInterface $date_formatter, TimeInterface $time_service) {
$this->entityTypeManager = $entity_type_manager;
$this->dateFormatter = $date_formatter;
$this->timeService = $time_service;
parent::__construct($configuration, $plugin_id, $plugin_definition);
}