You are here

public function UserDataCollector::__construct in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/DataCollector/UserDataCollector.php \Drupal\webprofiler\DataCollector\UserDataCollector::__construct()
  2. 8 webprofiler/src/DataCollector/UserDataCollector.php \Drupal\webprofiler\DataCollector\UserDataCollector::__construct()
  3. 8.2 webprofiler/src/DataCollector/UserDataCollector.php \Drupal\webprofiler\DataCollector\UserDataCollector::__construct()

Parameters

\Drupal\Core\Session\AccountInterface $current_user:

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager:

\Drupal\Core\Config\ConfigFactoryInterface $config_factory:

\Drupal\Core\Authentication\AuthenticationCollectorInterface $provider_collector:

File

webprofiler/src/DataCollector/UserDataCollector.php, line 48

Class

UserDataCollector
Class UserDataCollector.

Namespace

Drupal\webprofiler\DataCollector

Code

public function __construct(AccountInterface $current_user, EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory, AuthenticationCollectorInterface $provider_collector) {
  $this->currentUser = $current_user;
  $this->entityTypeManager = $entity_type_manager;
  $this->configFactory = $config_factory;
  $this->providerCollector = $provider_collector;
}