function EventSubscriber::__construct

Constructs the Event Subscriber object.

Parameters

\Drupal\Core\State\StateInterface $state: The state key value store.

File

core/modules/language/tests/language_events_test/src/EventSubscriber.php, line 18

Class

EventSubscriber

Namespace

Drupal\language_events_test

Code

public function __construct(private StateInterface $state) {
}

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