You are here

function CourseObjectAccessConditional::view in Course 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/course/CourseObjectAccess/CourseObjectAccessConditional.php \Drupal\course\Plugin\course\CourseObjectAccess\CourseObjectAccessConditional::view()
  2. 3.x src/Plugin/course/CourseObjectAccess/CourseObjectAccessConditional.php \Drupal\course\Plugin\course\CourseObjectAccess\CourseObjectAccessConditional::view()

Overrides CourseObjectAccessPluginBase::view

1 call to CourseObjectAccessConditional::view()
CourseObjectAccessConditional::see in src/Plugin/course/CourseObjectAccess/CourseObjectAccessConditional.php

File

src/Plugin/course/CourseObjectAccess/CourseObjectAccessConditional.php, line 16

Class

CourseObjectAccessConditional
Plugin annotation @CourseObjectAccess( id = "conditional", label = @Translation("Conditional"), )

Namespace

Drupal\course\Plugin\course\CourseObjectAccess

Code

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