You are here

public function Block::usesExposed in Drupal 8

Block views use exposed widgets only if AJAX is set.

Overrides DisplayPluginBase::usesExposed

1 call to Block::usesExposed()
Block::buildOptionsForm in core/modules/views/src/Plugin/views/display/Block.php
Provide the default form for setting options.

File

core/modules/views/src/Plugin/views/display/Block.php, line 381

Class

Block
The plugin that handles a block.

Namespace

Drupal\views\Plugin\views\display

Code

public function usesExposed() {
  if ($this
    ->ajaxEnabled()) {
    return parent::usesExposed();
  }
  return FALSE;
}