You are here

public function DataPolicyExportPluginBase::__construct in Data Policy 8

UserExportPluginBase constructor.

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\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter.

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

Overrides PluginBase::__construct

File

modules/data_policy_export/src/Plugin/DataPolicyExportPluginBase.php, line 58

Class

DataPolicyExportPluginBase
Base class for Data Policy export plugin plugins.

Namespace

Drupal\data_policy_export\Plugin

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, DateFormatterInterface $date_formatter, Connection $database) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
  $this->dateFormatter = $date_formatter;
  $this->database = $database;
}