public function DisqusBaseBlock::blockForm in Disqus 8
Overrides BlockPluginTrait::blockForm
3 calls to DisqusBaseBlock::blockForm()
- DisqusCombinationWidgetBlock::blockForm in src/
Plugin/ Block/ DisqusCombinationWidgetBlock.php - DisqusRecentCommentBlock::blockForm in src/
Plugin/ Block/ DisqusRecentCommentBlock.php - DisqusTopCommentersBlock::blockForm in src/
Plugin/ Block/ DisqusTopCommentersBlock.php
3 methods override DisqusBaseBlock::blockForm()
- DisqusCombinationWidgetBlock::blockForm in src/
Plugin/ Block/ DisqusCombinationWidgetBlock.php - DisqusRecentCommentBlock::blockForm in src/
Plugin/ Block/ DisqusRecentCommentBlock.php - DisqusTopCommentersBlock::blockForm in src/
Plugin/ Block/ DisqusTopCommentersBlock.php
File
- src/
Plugin/ Block/ DisqusBaseBlock.php, line 103
Class
- DisqusBaseBlock
- Create a new DisqusBaseBlock.
Namespace
Drupal\disqus\Plugin\BlockCode
public function blockForm($form, FormStateInterface $form_state) {
$form['disqus'] = [
'#type' => 'fieldset',
'#title' => $this
->t('Disqus settings'),
'#tree' => TRUE,
];
$form['disqus']['items'] = [
'#type' => 'select',
'#title' => $this
->t('Number of items to show'),
'#options' => [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
],
'#default_value' => $this->configuration['items'],
];
return $form;
}