public function RRSSBField::buildOptionsForm in Ridiculously Responsive Social Sharing Buttons 8.2
Default options form that provides the label widget that all fields should have.
Overrides FieldPluginBase::buildOptionsForm
File
- src/
Plugin/ views/ field/ RRSSBField.php, line 36
Class
- RRSSBField
- Field handler to show RRSSB Buttons.
Namespace
Drupal\rrssb\Plugin\views\fieldCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['button_set'] = [
'#type' => 'select',
'#title' => $this
->t('Button set'),
'#options' => rrssb_button_set_names(),
'#description' => $this
->t('Select RRSSB button set to display.'),
'#default_value' => $this->options['button_set'],
'#required' => TRUE,
];
parent::buildOptionsForm($form, $form_state);
}