public function CloneLink::buildOptionsForm in Quick Node Clone 8
Default options form that provides the label widget that all fields should have.
Overrides FieldPluginBase::buildOptionsForm
File
- src/
Plugin/ views/ field/ CloneLink.php, line 31
Class
- CloneLink
- Handler for showing quick node clone link.
Namespace
Drupal\quick_node_clone\Plugin\views\fieldCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['text'] = [
'#type' => 'textfield',
'#title' => $this
->t('Text to display'),
'#default_value' => $this->options['text'],
];
parent::buildOptionsForm($form, $form_state);
}