You are here

public function BatchController::batchPageTitle in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/src/Controller/BatchController.php \Drupal\system\Controller\BatchController::batchPageTitle()

The _title_callback for the system.batch_page.normal route.

Return value

string The page title.

1 string reference to 'BatchController::batchPageTitle'
system.routing.yml in core/modules/system/system.routing.yml
core/modules/system/system.routing.yml

File

core/modules/system/src/Controller/BatchController.php, line 90

Class

BatchController
Controller routines for batch routes.

Namespace

Drupal\system\Controller

Code

public function batchPageTitle() {
  $current_set = _batch_current_set();
  return !empty($current_set['title']) ? $current_set['title'] : '';
}