You are here

public function Block::usesExposed in Chaos Tool Suite (ctools) 8.3

Block views use exposed widgets only if AJAX is set.

Overrides Block::usesExposed

File

modules/ctools_views/src/Plugin/Display/Block.php, line 465

Class

Block
Provides a Block display plugin.

Namespace

Drupal\ctools_views\Plugin\Display

Code

public function usesExposed() {
  $filters = $this
    ->getHandlers('filter');
  foreach ($filters as $filter) {
    if ($filter
      ->isExposed() && !empty($filter
      ->exposedInfo())) {
      return TRUE;
    }
  }
  return FALSE;
}