You are here

public function CourseObjectQuiz::optionsDefinition in Course 8.3

Same name and namespace in other branches
  1. 8.2 modules/course_quiz/src/Plugin/course/CourseObject/CourseObjectQuiz.php \Drupal\course_quiz\Plugin\course\CourseObject\CourseObjectQuiz::optionsDefinition()
  2. 3.x 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 69

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