function BatchController::batchPageTitle

Same name in other branches
  1. 9 core/modules/system/src/Controller/BatchController.php \Drupal\system\Controller\BatchController::batchPageTitle()
  2. 10 core/modules/system/src/Controller/BatchController.php \Drupal\system\Controller\BatchController::batchPageTitle()
  3. 11.x 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'] : '';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.