public function EntityLabel::buildOptionsForm

File

src/Plugin/views/field/EntityLabel.php, line 28

Class

EntityLabel
Field handler which shows the label for a job or job item.

Namespace

Drupal\tmgmt\Plugin\views\field

Code

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);
}