You are here

public function StateWrapper::__construct in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::__construct()
  2. 8.2 webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::__construct()
  3. 4.x webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::__construct()

StateWrapper constructor.

Parameters

\Drupal\Core\State\StateInterface $state: The system state.

\Drupal\webprofiler\DataCollector\StateDataCollector $dataCollector: The state data collector.

Overrides CacheCollector::__construct

File

webprofiler/src/State/StateWrapper.php, line 36

Class

StateWrapper
Class StateWrapper.

Namespace

Drupal\webprofiler\State

Code

public function __construct(StateInterface $state, StateDataCollector $dataCollector) {
  $this->state = $state;
  $this->dataCollector = $dataCollector;
}