public function DataPolicyAgreement::__construct in Data Policy 8
DataPolicyAgreement constructor.
Parameters
\Drupal\data_policy\DataPolicyConsentManagerInterface $data_policy_manager: The Data Policy consent manager.
\Drupal\Core\Routing\RedirectDestinationInterface $destination: The redirect destination helper.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
File
- src/
Form/ DataPolicyAgreement.php, line 53
Class
- DataPolicyAgreement
- Class DataPolicyAgreement.
Namespace
Drupal\data_policy\FormCode
public function __construct(DataPolicyConsentManagerInterface $data_policy_manager, RedirectDestinationInterface $destination, DateFormatterInterface $date_formatter) {
$this->dataPolicyConsentManager = $data_policy_manager;
$this->destination = $destination;
$this->dateFormatter = $date_formatter;
}