public function LinkcheckerLinkPageEntityLabel::buildOptionsForm in Link checker 8
Default options form that provides the label widget that all fields should have.
Overrides FieldPluginBase::buildOptionsForm
File
- src/Plugin/ views/ field/ LinkcheckerLinkPageEntityLabel.php, line 34 
Class
- LinkcheckerLinkPageEntityLabel
- Field handler that builds the page entity label for the linkchecker_link.
Namespace
Drupal\linkchecker\Plugin\views\fieldCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  $form['link_to_entity'] = [
    '#title' => $this
      ->t('Link to entity'),
    '#description' => $this
      ->t('Make entity label a link to entity page.'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['link_to_entity']),
  ];
  parent::buildOptionsForm($form, $form_state);
}