You are here

public function DefaultDateRecurOccurrenceHandler::__construct in Recurring Dates Field 8

Construct a new DefaultDateRecurOccurrenceHandler.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

string $plugin_definition: The plugin implementation definition.

\Drupal\Core\Database\Connection $database: The database connection.

Overrides PluginBase::__construct

File

src/Plugin/DateRecurOccurrenceHandler/DefaultDateRecurOccurrenceHandler.php, line 75

Class

DefaultDateRecurOccurrenceHandler
Provides the default occurrence handler.

Namespace

Drupal\date_recur\Plugin\DateRecurOccurrenceHandler

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Connection $database) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->database = $database;

  // Assume no recurrence until declared otherwise in init().
  $this->isRecurring = FALSE;
}