You are here

private function OverdueOverview::formatMarkup in Library 8

Format markup.

Parameters

string $data: Data for render array.

Return value

string Formatted HTML.

1 call to OverdueOverview::formatMarkup()
OverdueOverview::listing in src/Controller/OverdueOverview.php
List.

File

src/Controller/OverdueOverview.php, line 118

Class

OverdueOverview
Overdue overview controller.

Namespace

Drupal\library\Controller

Code

private function formatMarkup($data) : string {
  $escaped = [
    '#markup' => nl2br($data),
  ];
  $formatted = \Drupal::service('renderer')
    ->render($escaped);
  return $formatted;
}