diff -u b/core/modules/views/src/ViewsConfigUpdater.php b/core/modules/views/src/ViewsConfigUpdater.php --- b/core/modules/views/src/ViewsConfigUpdater.php +++ b/core/modules/views/src/ViewsConfigUpdater.php @@ -123,7 +123,7 @@ * Whether the view was updated. */ public function updateAll(ViewEntityInterface $view) { - return $this->processDisplayHandlers($view, FALSE, function (&$handler, $handler_type, $key, $display_id) { + return $this->processDisplayHandlers($view, FALSE, function (&$handler, $handler_type, $key, $display_id) use ($view) { $changed = FALSE; if ($this->processSortFieldIdentifierUpdateHandler($handler, $handler_type)) { $changed = TRUE;