public function CourseObjectAccessGrade::optionsDefinition in Course 3.x
Same name and namespace in other branches
- 8.3 src/Plugin/course/CourseObjectAccess/CourseObjectAccessGrade.php \Drupal\course\Plugin\course\CourseObjectAccess\CourseObjectAccessGrade::optionsDefinition()
- 8.2 src/Plugin/course/CourseObjectAccess/CourseObjectAccessGrade.php \Drupal\course\Plugin\course\CourseObjectAccess\CourseObjectAccessGrade::optionsDefinition()
Overrides CourseObjectAccessPluginBase::optionsDefinition
File
- src/
Plugin/ course/ CourseObjectAccess/ CourseObjectAccessGrade.php, line 17
Class
- CourseObjectAccessGrade
- Plugin annotation @CourseObjectAccess( id = "grade", label = @Translation("Grade"), )
Namespace
Drupal\course\Plugin\course\CourseObjectAccessCode
public function optionsDefinition() {
$defaults = parent::optionsDefinition();
$defaults += [
'course_grade_range' => [
'low' => NULL,
'high' => NULL,
],
'course_grade_hidden' => NULL,
'conditional_object' => NULL,
];
return $defaults;
}