diff --git a/core/modules/views_ui/src/ViewUI.php b/core/modules/views_ui/src/ViewUI.php
index 71fcf90..0315899 100644
--- a/core/modules/views_ui/src/ViewUI.php
+++ b/core/modules/views_ui/src/ViewUI.php
@@ -710,10 +710,20 @@ public function renderPreview($display_id, $args = array()) {
}
if ($show_stats) {
- $rows['statistics'][] = array('' . t('Query build time') . '', t('@time ms', array('@time' => intval($this->executable->build_time * 100000) / 100)));
- $rows['statistics'][] = array('' . t('Query execute time') . '', t('@time ms', array('@time' => intval($this->executable->execute_time * 100000) / 100)));
- $rows['statistics'][] = array('' . t('View render time') . '', t('@time ms', array('@time' => intval($this->executable->render_time * 100000) / 100)));
+ $rows['statistics'][] = array(
+ array('data' => array('#type' => 'inline_template', '#template' => "{% trans 'Query build time' %}")),
+ intval($this->executable->build_time * 100000) / 100 . ' ms',
+ );
+
+ $rows['statistics'][] = array(
+ array('data' => array('#type' => 'inline_template', '#template' => "{% trans 'Query execute time' %}")),
+ intval($this->executable->execute_time * 100000) / 100 . ' ms',
+ );
+ $rows['statistics'][] = array(
+ array('data' => array('#type' => 'inline_template', '#template' => "{% trans 'View render time' %}")),
+ intval($this->executable->render_time * 100000) / 100 . ' ms',
+ );
}
\Drupal::moduleHandler()->alter('views_preview_info', $rows, $this->executable);
}