You are here

public function EntityBlockBlock::blockForm in Entityblock 8

Overrides BlockPluginTrait::blockForm

File

src/Plugin/Block/EntityBlockBlock.php, line 101
Contains \Drupal\entityblock\Plugin\Block\EntityBlockBlock.

Class

EntityBlockBlock
Provides an entityblock block.

Namespace

Drupal\entityblock\Plugin\Block

Code

public function blockForm($form, FormStateInterface $form_state) {
  $block_form = [];
  $block_form['label_override'] = [
    '#type' => 'checkbox',
    '#title' => $this
      ->t('Override block title'),
    '#default_value' => $this->configuration['label_override'],
    '#description' => $this
      ->t('Selecting this will allow you to override the block title that is set in the EntityBlock.'),
  ];
  return $block_form;
}