function BatchNegotiator::__construct
Same name and namespace in other branches
- 11.x core/modules/system/src/Theme/BatchNegotiator.php \Drupal\system\Theme\BatchNegotiator::__construct()
- 10 core/modules/system/src/Theme/BatchNegotiator.php \Drupal\system\Theme\BatchNegotiator::__construct()
- 9 core/modules/system/src/Theme/BatchNegotiator.php \Drupal\system\Theme\BatchNegotiator::__construct()
- 8.9.x core/modules/system/src/Theme/BatchNegotiator.php \Drupal\system\Theme\BatchNegotiator::__construct()
Constructs a BatchNegotiator.
Parameters
\Drupal\Core\Batch\BatchStorageInterface $batchStorage: The batch storage.
\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack used to retrieve the current request.
File
-
core/
modules/ system/ src/ Theme/ BatchNegotiator.php, line 23
Class
- BatchNegotiator
- Sets the active theme for the batch page.
Namespace
Drupal\system\ThemeCode
public function __construct(protected BatchStorageInterface $batchStorage, protected RequestStack $requestStack) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.