public function HoldTestSubscriber::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/hold_test/src/EventSubscriber/HoldTestSubscriber.php \Drupal\hold_test\EventSubscriber\HoldTestSubscriber::__construct()
- 9 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 36
Class
- HoldTestSubscriber
- Response subscriber to test hold.
Namespace
Drupal\hold_test\EventSubscriberCode
public function __construct(string $site_path) {
$this->sitePath = $site_path;
}