You are here

public function Block::usesExposedFormInBlock in Drupal 9

Checks to see if the display can put the exposed form in a block.

By default, displays that do not have a path cannot disconnect the exposed form and put it in a block, because the form has no place to go and Views really wants the forms to go to a specific page.

Overrides DisplayPluginBase::usesExposedFormInBlock

File

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

Class

Block
The plugin that handles a block.

Namespace

Drupal\views\Plugin\views\display

Code

public function usesExposedFormInBlock() {
  return TRUE;
}