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 new 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\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

\Drupal\Core\Entity\EntityStorageInterface $date_format_storage: The date format storage.

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

Overrides Date::__construct

File

src/Plugin/views/field/UserConsentDataPolicyRevision.php, line 44

Class

UserConsentDataPolicyRevision
A handler to provide proper displays for dates.

Namespace

Drupal\data_policy\Plugin\views\field

Code

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