public function StateWrapper::__construct in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::__construct()
- 8.2 webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::__construct()
- 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\StateCode
public function __construct(StateInterface $state, StateDataCollector $dataCollector) {
$this->state = $state;
$this->dataCollector = $dataCollector;
}