Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DisplayPluginBase.php

function DisplayPluginBase::preExecute

Overrides DisplayPluginInterface::preExecute

File

core/modules/views/src/Plugin/views/display/DisplayPluginBase.php, line 2347

Class

DisplayPluginBase
Base class for views display plugins.

Namespace

Drupal\views\Plugin\views\display

Code

public function preExecute() {
    $this->view
        ->setAjaxEnabled($this->ajaxEnabled());
    if ($this->isMoreEnabled() && !$this->useMoreAlways()) {
        $this->view->get_total_rows = TRUE;
    }
    $this->view
        ->initHandlers();
    if ($this->usesExposed()) {
        
        /** @var \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginInterface $exposed_form */
        $exposed_form = $this->getPlugin('exposed_form');
        $exposed_form->preExecute();
    }
    foreach ($this->extenders as $extender) {
        $extender->preExecute();
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal