startQueryCapture example

// Suppress contextual links of entities within the result set during a       // Preview.       // @todo We'll want to add contextual links specific to editing the View, so       // the suppression may need to be moved deeper into the Preview pipeline.       views_ui_contextual_links_suppress_push();

      $show_additional_queries = $config->get('ui.show.additional_queries');

      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'];

      
Home | Imprint | This part of the site doesn't use cookies.