You are here

public function AuthorPaneBlock::blockForm in Author Pane 8.3

Overrides BlockPluginTrait::blockForm

File

src/Plugin/Block/AuthorPaneBlock.php, line 48
Contains \Drupal\author_pane\Plugin\Block\AuthorPane.

Class

AuthorPaneBlock
Provides a Author Pane block.

Namespace

Drupal\author_pane\Plugin\Block

Code

public function blockForm($form, FormStateInterface $form_state) {

  // @TODO: Replace this with list of author panes.
  $options = array(
    'authorpane' => 'Author Pane',
  );
  $config = $this
    ->getConfiguration();
  $form['author_pane'] = array(
    '#type' => 'select',
    '#title' => $this
      ->t('Which author pane to display?'),
    '#default_value' => $config['author_pane'],
    '#options' => $options,
  );
  return $form;
}