Commit ab8284be authored by catch's avatar catch

Issue #2842763 by alexpott: views_ui_preprocess_views_view() broken in PHP 7.1

parent 8746bd3e
......@@ -134,7 +134,9 @@ function views_ui_preprocess_views_view(&$variables) {
// Render title for the admin preview.
if (!empty($view->live_preview)) {
$variables['title']['#markup'] = $view->getTitle();
$variables['title'] = [
'#markup' => $view->getTitle()
];
}
if (!empty($view->live_preview) && \Drupal::moduleHandler()->moduleExists('contextual')) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment