1 views_plugin_display_block.inc views_plugin_display_block::displays_exposed()

Determine if this display should display the exposed filters widgets, so the view will know whether or not to render them.

Regardless of what this function returns, exposed filters will not be used nor displayed unless uses_exposed() returns TRUE.

Overrides views_plugin_display::displays_exposed

File

core/modules/views/plugins/views_plugin_display_block.inc, line 476
Contains the block display plugin.

Class

views_plugin_display_block
The plugin that handles a block.

Code

function displays_exposed() {
  $allow = $this->get_option('allow');
  // If this is set, the exposed form is part of pane configuration, not
  // rendered normally.
  return empty($allow['exposed_form']);
}