You are here

function CourseObjectQuiz::isGraded in Course 8.2

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::isGraded()
  2. 3.x modules/course_quiz/src/Plugin/course/CourseObject/CourseObjectQuiz.php \Drupal\course_quiz\Plugin\course\CourseObject\CourseObjectQuiz::isGraded()

Is this object graded?

Returning TRUE here will cause some more configurations to show on the object's form.

Return value

bool

Overrides CourseObject::isGraded

1 call to CourseObjectQuiz::isGraded()
CourseObjectQuiz::getStatus in modules/course_quiz/src/Plugin/course/CourseObject/CourseObjectQuiz.php
Get the status of this quiz for the requirements list.

File

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

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

function isGraded() {
  return TRUE;
}