public function DataPolicy::__construct in Data Policy 8
DataPolicy constructor.
Parameters
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
\Drupal\data_policy\DataPolicyConsentManagerInterface $data_policy_consent_manager: The Data Policy consent manager.
\Symfony\Component\HttpFoundation\Request $request: The current request.
File
- src/
Controller/ DataPolicy.php, line 76
Class
- DataPolicy
- Class DataPolicy.
Namespace
Drupal\data_policy\ControllerCode
public function __construct(EntityRepositoryInterface $entity_repository, DateFormatterInterface $date_formatter, RendererInterface $renderer, DataPolicyConsentManagerInterface $data_policy_consent_manager, Request $request) {
$this->entityRepository = $entity_repository;
$this->dateFormatter = $date_formatter;
$this->renderer = $renderer;
$this->dataPolicyConsentManager = $data_policy_consent_manager;
$this->request = $request;
}