You are here

protected function QuizResultAnswerField::defineOptions in Quiz 6.x

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides PrerenderList::defineOptions

File

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

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

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['qqid'] = [
    'default' => NULL,
  ];
  return $options;
}