You are here

public function ShurlyLinkDeactivate::buildOptionsForm in ShURLy 8

Default options form that provides the label widget that all fields should have.

Overrides FieldPluginBase::buildOptionsForm

File

src/Plugin/views/field/ShurlyLinkDeactivate.php, line 41

Class

ShurlyLinkDeactivate
Field handler to provide a link to the short URL entry.

Namespace

Drupal\shurly\Plugin\views\field

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  $form['text'] = [
    '#type' => 'textfield',
    '#title' => t('Text to display'),
    '#default_value' => $this->options['text'],
  ];
  parent::buildOptionsForm($form, $form_state);
}