Modifying $view in hook_views_pre_render()
function hook_views_post_render(\Drupal\views\ViewExecutable $view) {
   if ($view-&gt;id() == 'viewid') {
    // Set the view title.
    $view-&gt;setTitle('NEW TITLE');
   }
}