You are here

public function RedirectSubscriber::__construct in Data Policy 8

RedirectSubscriber constructor.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current active route match object.

\Drupal\Core\Routing\RedirectDestinationInterface $destination: The redirect destination helper.

\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.

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

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

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

\Drupal\data_policy\DataPolicyConsentManagerInterface $data_policy_manager: The Data Policy consent manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler interface.

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

File

src/RedirectSubscriber.php, line 116

Class

RedirectSubscriber
Class RedirectSubscriber.

Namespace

Drupal\data_policy

Code

public function __construct(RouteMatchInterface $route_match, RedirectDestinationInterface $destination, AccountProxyInterface $current_user, ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, MessengerInterface $messenger, DataPolicyConsentManagerInterface $data_policy_manager, ModuleHandlerInterface $module_handler, Connection $database) {
  $this->routeMatch = $route_match;
  $this->destination = $destination;
  $this->currentUser = $current_user;
  $this->configFactory = $config_factory;
  $this->entityTypeManager = $entity_type_manager;
  $this->messenger = $messenger;
  $this->dataPolicyConsentManager = $data_policy_manager;
  $this->moduleHandler = $module_handler;
  $this->database = $database;
}