class BatchController implements ContainerInjectionInterface (View source)

Controller routines for batch routes.

Properties

protected string $root

The app root.

Methods

__construct(string $root)

Constructs a new BatchController.

static 
create(ContainerInterface $container)

Instantiates a new instance of this class.

Response|array
batchPage(Request $request)

Returns a system batch page.

string
batchPageTitle()

The _title_callback for the system.batch_page.normal route.

Details

__construct(string $root)

Constructs a new BatchController.

Parameters

string $root

The app root.

static create(ContainerInterface $container)

Instantiates a new instance of this class.

This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton.

Parameters

ContainerInterface $container

The service container this instance should use.

Response|array batchPage(Request $request)

Returns a system batch page.

Parameters

Request $request

The current request object.

Return Value

Response|array

A \Symfony\Component\HttpFoundation\Response object or render array.

Exceptions

AccessDeniedHttpException

string batchPageTitle()

The _title_callback for the system.batch_page.normal route.

Return Value

string

The page title.