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