You are here

public function CourseObjectGradedTest::isGraded in Course 8.2

Same name and namespace in other branches
  1. 8.3 modules/course_test/src/Plugin/course/CourseObject/CourseObjectGradedTest.php \Drupal\course_test\Plugin\course\CourseObject\CourseObjectGradedTest::isGraded()
  2. 3.x modules/course_test/src/Plugin/course/CourseObject/CourseObjectGradedTest.php \Drupal\course_test\Plugin\course\CourseObject\CourseObjectGradedTest::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

File

modules/course_test/src/Plugin/course/CourseObject/CourseObjectGradedTest.php, line 16

Class

CourseObjectGradedTest
Plugin annotation @CourseObject( id = "course_test_graded_object", label = "Test graded course object", handlers = { "fulfillment" = "\Drupal\course_test\Plugin\course\CourseObject\CourseObjectTestFulfillment" } )

Namespace

Drupal\course_test\Plugin\course\CourseObject

Code

public function isGraded() {
  return TRUE;
}