public function TagadelicBlock::blockForm in Tagadelic 8.3
Overrides BlockPluginTrait::blockForm
File
- src/
Plugin/ Block/ TagadelicBlock.php, line 86
Class
- TagadelicBlock
- Provides a block to display a tag cloud.
Namespace
Drupal\tagadelic\Plugin\BlockCode
public function blockForm($form, FormStateInterface $form_state) {
$config = $this->configuration;
$options = range(0, 50);
$form['num_tags_block'] = array(
'#type' => 'select',
'#title' => $this
->t('Number of tags to display'),
'#default_value' => $config['num_tags_block'],
'#options' => $options,
'#description' => $this
->t('This will be the number of tags displayed in the block.'),
'#required' => TRUE,
);
return $form;
}