You are here

protected function WebformNodeReferencesListController::buildInfo in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_node/src/Controller/WebformNodeReferencesListController.php \Drupal\webform_node\Controller\WebformNodeReferencesListController::buildInfo()

Build information summary.

Return value

array A render array representing the information summary.

1 call to WebformNodeReferencesListController::buildInfo()
WebformNodeReferencesListController::render in modules/webform_node/src/Controller/WebformNodeReferencesListController.php
Builds the entity listing as renderable array for table.html.twig.

File

modules/webform_node/src/Controller/WebformNodeReferencesListController.php, line 447

Class

WebformNodeReferencesListController
Defines a controller for webform node references.

Namespace

Drupal\webform_node\Controller

Code

protected function buildInfo() {
  $total = $this
    ->getTotal();
  return [
    '#markup' => $this
      ->formatPlural($total, '@count reference', '@count references'),
    '#prefix' => '<div>',
    '#suffix' => '</div>',
  ];
}