diff --git a/core/modules/views_ui/src/ViewUI.php b/core/modules/views_ui/src/ViewUI.php index 71f133e..1319a7f 100644 --- a/core/modules/views_ui/src/ViewUI.php +++ b/core/modules/views_ui/src/ViewUI.php @@ -679,8 +679,8 @@ public function renderPreview($display_id, $args = array()) { } } $rows['query'][] = array( - array('data' => array('#type' => 'twig_inline', '#template' => ' {% trans "Query" %} ')), - array('data' => array('#type' => 'twig_inline', '#template' => '
{{ query }} ', '#context' => array('query' => strtr($query_string, $quoted)))),
+ array('data' => array('#type' => 'twig_inline', '#template' => "{% trans 'Query' %}")),
+ array('data' => array('#type' => 'twig_inline', '#template' => '{{ query }}', '#context' => array('query' => strtr($query_string, $quoted)))),
);
if (!empty($this->additionalQueries)) {
$queries = '' . t('These queries were run during view rendering:') . '';
@@ -693,14 +693,14 @@ public function renderPreview($display_id, $args = array()) {
}
$rows['query'][] = array(
- array('data' => array('#type' => 'twig_inline', '#template' => ' {% trans "Other queries" %} ')),
+ array('data' => array('#type' => 'twig_inline', '#template' => "{% trans 'Other queries' %}")),
SafeMarkup::set('' . $queries . ''), ); } } if ($show_info) { $rows['query'][] = array( - array('data' => array('#type' => 'twig_inline', '#template' => ' {% trans "Title" %} ')), + array('data' => array('#type' => 'twig_inline', '#template' => "{% trans 'Title' %}")), Xss::filterAdmin($this->executable->getTitle()), ); if (isset($path)) {