You are here

public function WebformSubmissionSubmittedToLabel::buildOptionsForm in Webform Views Integration 8.5

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

Overrides FieldPluginBase::buildOptionsForm

File

src/Plugin/views/field/WebformSubmissionSubmittedToLabel.php, line 70

Class

WebformSubmissionSubmittedToLabel
Display entity label which a webform submission was submitted to.

Namespace

Drupal\webform_views\Plugin\views\field

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['link'] = [
    '#type' => 'checkbox',
    '#title' => $this
      ->t('Link to the source entity'),
    '#description' => $this
      ->t('Whether to output this field as a link to the source entity.'),
    '#default_value' => $this->options['link'],
  ];
}