public function RlInterpreter::__construct in Recurring Dates Field 3.0.x
Same name and namespace in other branches
- 8.2 src/Plugin/DateRecurInterpreter/RlInterpreter.php \Drupal\date_recur\Plugin\DateRecurInterpreter\RlInterpreter::__construct()
- 3.x src/Plugin/DateRecurInterpreter/RlInterpreter.php \Drupal\date_recur\Plugin\DateRecurInterpreter\RlInterpreter::__construct()
- 3.1.x src/Plugin/DateRecurInterpreter/RlInterpreter.php \Drupal\date_recur\Plugin\DateRecurInterpreter\RlInterpreter::__construct()
Constructs a new RlInterpreter.
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\Datetime\DateFormatterInterface $dateFormatter: The date formatter service.
\Drupal\Core\Entity\EntityStorageInterface $dateFormatStorage: The date format storage.
Overrides PluginBase::__construct
File
- src/
Plugin/ DateRecurInterpreter/ RlInterpreter.php, line 62
Class
- RlInterpreter
- Provides an interpreter implemented by rlanvin/php-rrule.
Namespace
Drupal\date_recur\Plugin\DateRecurInterpreterCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, DateFormatterInterface $dateFormatter, EntityStorageInterface $dateFormatStorage) {
parent::__construct([], $plugin_id, $plugin_definition);
$this
->setConfiguration($configuration);
$this->dateFormatter = $dateFormatter;
$this->dateFormatStorage = $dateFormatStorage;
}