public function DisplayPluginBase::ajaxEnabled

Whether the display is actually using AJAX or not.

Return value

bool

2 calls to DisplayPluginBase::ajaxEnabled()
Block::usesExposed in drupal/core/modules/block/lib/Drupal/block/Plugin/views/display/Block.php
Block views use exposed widgets only if AJAX is set.
DisplayPluginBase::preExecute in drupal/core/modules/views/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

drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php, line 250
Contains 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 ajaxEnabled() {
  if ($this
    ->usesAJAX()) {
    return $this
      ->getOption('use_ajax');
  }
  return FALSE;
}