You are here

function CourseObjectAccessGrade::view in Course 8.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/course/CourseObjectAccess/CourseObjectAccessGrade.php \Drupal\course\Plugin\course\CourseObjectAccess\CourseObjectAccessGrade::view()

Overrides CourseObjectAccessPluginBase::view

File

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

Class

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

Namespace

Drupal\course\Plugin\course\CourseObjectAccess

Code

function view($account) {
  return $this
    ->take($account);
}