You are here

function CourseObjectAccessGrade::see 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::see()

Overrides CourseObjectAccessPluginBase::see

File

src/Plugin/course/CourseObjectAccess/CourseObjectAccessGrade.php, line 84

Class

CourseObjectAccessGrade
Plugin annotation @CourseObjectAccess( id = "grade", label = @Translation("Grade"), )

Namespace

Drupal\course\Plugin\course\CourseObjectAccess

Code

function see($account) {
  if (!$this
    ->take($account) && $this
    ->getOption('course_grade_hidden')) {
    return FALSE;
  }
}