function HoldTestSubscriber::__construct

Same name in other branches
  1. 9 core/modules/system/tests/modules/hold_test/src/EventSubscriber/HoldTestSubscriber.php \Drupal\hold_test\EventSubscriber\HoldTestSubscriber::__construct()
  2. 8.9.x core/modules/system/tests/modules/hold_test/src/EventSubscriber/HoldTestSubscriber.php \Drupal\hold_test\EventSubscriber\HoldTestSubscriber::__construct()
  3. 10 core/modules/system/tests/modules/hold_test/src/EventSubscriber/HoldTestSubscriber.php \Drupal\hold_test\EventSubscriber\HoldTestSubscriber::__construct()

HoldTestSubscriber constructor.

Parameters

string $site_path: The site path.

File

core/modules/system/tests/modules/hold_test/src/EventSubscriber/HoldTestSubscriber.php, line 38

Class

HoldTestSubscriber
Response subscriber to test hold.

Namespace

Drupal\hold_test\EventSubscriber

Code

public function __construct(string $site_path) {
    $this->sitePath = $site_path;
}

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