public function PrintLink::buildOptionsForm in Entity Print 8.2
Default options form that provides the label widget that all fields should have.
Overrides LinkBase::buildOptionsForm
File
- modules/
entity_print_views/ src/ Plugin/ views/ field/ PrintLink.php, line 79
Class
- PrintLink
- Field handler to present print links for an entity.
Namespace
Drupal\entity_print_views\Plugin\views\fieldCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['export_type'] = [
'#type' => 'select',
'#title' => $this
->t('Export Type'),
'#required' => TRUE,
'#options' => $this->exportTypeManager
->getFormOptions(),
'#default_value' => $this->options['export_type'],
];
$form['open_new_window'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Open in new window'),
'#default_value' => $this->options['open_new_window'],
];
}