$account = \Drupal::currentUser();
if (count($view->query->tables) > 2 && $account->hasPermission('administer views')) {
$account = \Drupal::currentUser();
if (count($view->query->tables) > 2 && $account->hasPermission('administer views')) {
// (This action could be performed later in the execution process, but not
// earlier.)
if ($view->total_rows > 100) {
// (This action could be performed later in the execution process, but not
// earlier.)
if ($view->total_rows > 100) {