You are here

public function CourseObjectQuiz::optionsDefinition in Course 3.x

Same name and namespace in other branches
  1. 8.3 modules/course_quiz/src/Plugin/course/CourseObject/CourseObjectQuiz.php \Drupal\course_quiz\Plugin\course\CourseObject\CourseObjectQuiz::optionsDefinition()
  2. 8.2 modules/course_quiz/src/Plugin/course/CourseObject/CourseObjectQuiz.php \Drupal\course_quiz\Plugin\course\CourseObject\CourseObjectQuiz::optionsDefinition()

Course quiz options.

Overrides CourseObject::optionsDefinition

File

modules/course_quiz/src/Plugin/course/CourseObject/CourseObjectQuiz.php, line 89

Class

CourseObjectQuiz
Plugin annotation @CourseObject( id = "quiz", label = "Quiz", handlers = { "fulfillment" = "\Drupal\course_quiz\Plugin\course\CourseObject\CourseObjectQuizFulfillment" } )

Namespace

Drupal\course_quiz\Plugin\course\CourseObject

Code

public function optionsDefinition() {
  $options = parent::optionsDefinition();
  $options['quiz_goto'] = 'view';
  $options['passing_grade'] = 75;
  return $options;
}