protected function WebformNodeReferencesListController::buildInfo in Webform 6.x
Same name and namespace in other branches
- 8.5 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 406
Class
- WebformNodeReferencesListController
- Defines a controller for webform node references.
Namespace
Drupal\webform_node\ControllerCode
protected function buildInfo() {
$total = $this
->getTotal();
return [
'#markup' => $this
->formatPlural($total, '@count reference', '@count references'),
'#prefix' => '<div>',
'#suffix' => '</div>',
];
}