You are here

public function DisplayPluginBase::isAJAXEnabled in Views (for Drupal 7) 8.3

Whether the display is actually using AJAX or not.

Return value

bool

2 calls to DisplayPluginBase::isAJAXEnabled()
Block::usesExposed in lib/Views/block/Plugin/views/display/Block.php
Block views use exposed widgets only if AJAX is set.
DisplayPluginBase::preExecute in lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
Set up any variables on the view prior to execution. These are separated from execute because they are extremely common and unlikely to be overridden on an individual display.

File

lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php, line 240
Definition of Drupal\views\Plugin\views\display\DisplayPluginBase.

Class

DisplayPluginBase
The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.

Namespace

Drupal\views\Plugin\views\display

Code

public function isAJAXEnabled() {
  if ($this
    ->usesAJAX()) {
    return $this
      ->getOption('use_ajax');
  }
  return FALSE;
}