You are here

public function CourseObjectAccessGrade::optionsDefinition in Course 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/course/CourseObjectAccess/CourseObjectAccessGrade.php \Drupal\course\Plugin\course\CourseObjectAccess\CourseObjectAccessGrade::optionsDefinition()
  2. 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\CourseObjectAccess

Code

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;
}