public function BlockDescription::settingsForm in Display Suite 8.2
Same name and namespace in other branches
- 8.4 src/Plugin/DsField/Block/BlockDescription.php \Drupal\ds\Plugin\DsField\Block\BlockDescription::settingsForm()
- 8.3 src/Plugin/DsField/Block/BlockDescription.php \Drupal\ds\Plugin\DsField\Block\BlockDescription::settingsForm()
The form that holds the settings for this plugin.
Overrides DsFieldBase::settingsForm
File
- src/
Plugin/ DsField/ Block/ BlockDescription.php, line 50
Class
- BlockDescription
- Plugin that renders the title of a block.
Namespace
Drupal\ds\Plugin\DsField\BlockCode
public function settingsForm($form, FormStateInterface $form_state) {
$config = $this
->getConfiguration();
$settings['wrapper'] = array(
'#type' => 'textfield',
'#title' => 'Wrapper',
'#default_value' => $config['wrapper'],
'#description' => $this
->t('Eg: h1, h2, p'),
);
$settings['class'] = array(
'#type' => 'textfield',
'#title' => 'Class',
'#default_value' => $config['class'],
'#description' => $this
->t('Put a class on the wrapper. Eg: block-title'),
);
return $settings;
}