public function CourseObjectManual::optionsDefinition in Course 8.2
Same name and namespace in other branches
- 8.3 modules/course_object_manual/src/Plugin/course/CourseObject/CourseObjectManual.php \Drupal\course_object_manual\Plugin\course\CourseObject\CourseObjectManual::optionsDefinition()
- 3.x modules/course_object_manual/src/Plugin/course/CourseObject/CourseObjectManual.php \Drupal\course_object_manual\Plugin\course\CourseObject\CourseObjectManual::optionsDefinition()
Define configuration elements and their defaults.
Extended classes should call parent::optionsDefinition first to get the parent's configuration.
Overrides CourseObject::optionsDefinition
File
- modules/
course_object_manual/ src/ Plugin/ course/ CourseObject/ CourseObjectManual.php, line 47
Class
- CourseObjectManual
- Plugin annotation @CourseObject( id = "manual", label = "Manual step", handlers = { "fulfillment" = "\Drupal\course\Entity\CourseObjectFulfillment" } )
Namespace
Drupal\course_object_manual\Plugin\course\CourseObjectCode
public function optionsDefinition() {
$defaults = parent::optionsDefinition();
$defaults['complete_msg'] = 'Your instructor has marked you as passed.';
$defaults['incomplete_msg'] = 'Your instructor has not given you a pass/fail grade yet.';
$defaults['failed_msg'] = 'Your instructor has marked you as failed.';
return $defaults;
}