You are here

public function BatchNegotiator::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/src/Theme/BatchNegotiator.php \Drupal\system\Theme\BatchNegotiator::__construct()
  2. 9 core/modules/system/src/Theme/BatchNegotiator.php \Drupal\system\Theme\BatchNegotiator::__construct()

Constructs a BatchNegotiator.

Parameters

\Drupal\Core\Batch\BatchStorageInterface $batch_storage: The batch storage.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack used to retrieve the current request.

File

core/modules/system/src/Theme/BatchNegotiator.php, line 37

Class

BatchNegotiator
Sets the active theme for the batch page.

Namespace

Drupal\system\Theme

Code

public function __construct(BatchStorageInterface $batch_storage, RequestStack $request_stack) {
  $this->batchStorage = $batch_storage;
  $this->requestStack = $request_stack;
}