You are here

public function ViewsBlock::blockForm in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/Block/ViewsBlock.php \Drupal\views\Plugin\Block\ViewsBlock::blockForm()

Overrides BlockPluginTrait::blockForm

File

core/modules/views/src/Plugin/Block/ViewsBlock.php, line 115

Class

ViewsBlock
Provides a generic Views block.

Namespace

Drupal\views\Plugin\Block

Code

public function blockForm($form, FormStateInterface $form_state) {
  if ($this->displaySet) {
    return $this->view->display_handler
      ->blockForm($this, $form, $form_state);
  }
  return [];
}