function TestSubscriber::__construct

Creates a TestSubscriber object.

Parameters

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

File

core/modules/package_manager/tests/modules/package_manager_test_validation/src/EventSubscriber/TestSubscriber.php, line 43

Class

TestSubscriber
Defines an event subscriber for testing validation of Package Manager events.

Namespace

Drupal\package_manager_test_validation\EventSubscriber

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.