BatchNegotiator
class BatchNegotiator implements ThemeNegotiatorInterface (View source)
Sets the active theme for the batch page.
Properties
| protected BatchStorageInterface | $batchStorage | The batch storage. |
|
| protected RequestStack | $requestStack | The request stack. |
Methods
__construct(BatchStorageInterface $batch_storage, RequestStack $request_stack)
Constructs a BatchNegotiator.
bool
applies(RouteMatchInterface $route_match)
Whether this theme negotiator should be used to set the theme.
string|null
Details
__construct(BatchStorageInterface $batch_storage, RequestStack $request_stack)
Constructs a BatchNegotiator.
bool
applies(RouteMatchInterface $route_match)
Whether this theme negotiator should be used to set the theme.
string|null
determineActiveTheme(RouteMatchInterface $route_match)
Determine the active theme for the request.