endQueryCapture example

Timer::start('entity.view.preview_form');

      if ($show_additional_queries) {
        $this->startQueryCapture();
      }

      // Execute/get the view preview.       $preview = $executable->preview($display_id$args);

      if ($show_additional_queries) {
        $this->endQueryCapture();
      }

      $this->render_time = Timer::stop('entity.view.preview_form')['time'];

      views_ui_contextual_links_suppress_pop();

      // Prepare the query information and statistics to show either above or       // below the view preview.       // Initialize the empty rows arrays so we can safely merge them later.       $rows['query'] = [];
      $rows['statistics'] = [];
      
Home | Imprint | This part of the site doesn't use cookies.