You are here

public function UserConsentDataPolicyRevision::__construct in Data Policy 8

Same name in this branch
  1. 8 src/Plugin/views/filter/UserConsentDataPolicyRevision.php \Drupal\data_policy\Plugin\views\filter\UserConsentDataPolicyRevision::__construct()
  2. 8 src/Plugin/views/field/UserConsentDataPolicyRevision.php \Drupal\data_policy\Plugin\views\field\UserConsentDataPolicyRevision::__construct()

Constructs a UserConsentDataPolicyRevision 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.

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

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

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Overrides HandlerBase::__construct

File

src/Plugin/views/filter/UserConsentDataPolicyRevision.php, line 67

Class

UserConsentDataPolicyRevision
Simple filter to handle matching of multiple data policy revisions.

Namespace

Drupal\data_policy\Plugin\views\filter

Code

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