You are here

public function QuizResultAnswerField::buildOptionsForm in Quiz 6.x

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

Overrides PrerenderList::buildOptionsForm

File

src/Plugin/views/field/QuizResultAnswerField.php, line 43

Class

QuizResultAnswerField
A handler to provide a field that pulls answers from a single question on a single quiz result.

Namespace

Drupal\quiz\Plugin\views\field

Code

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