function CourseObjectAccessConditional::view in Course 3.x
Same name and namespace in other branches
- 8.3 src/Plugin/course/CourseObjectAccess/CourseObjectAccessConditional.php \Drupal\course\Plugin\course\CourseObjectAccess\CourseObjectAccessConditional::view()
- 8.2 src/Plugin/course/CourseObjectAccess/CourseObjectAccessConditional.php \Drupal\course\Plugin\course\CourseObjectAccess\CourseObjectAccessConditional::view()
Can the user view the object but not interact?
Parameters
type $account:
Return value
boolean
Overrides CourseObjectAccessPluginBase::view
1 call to CourseObjectAccessConditional::view()
- CourseObjectAccessConditional::see in src/
Plugin/ course/ CourseObjectAccess/ CourseObjectAccessConditional.php - Can the user see the object in the outline?
File
- src/
Plugin/ course/ CourseObjectAccess/ CourseObjectAccessConditional.php, line 18
Class
- CourseObjectAccessConditional
- Plugin annotation @CourseObjectAccess( id = "conditional", label = @Translation("Conditional"), )
Namespace
Drupal\course\Plugin\course\CourseObjectAccessCode
function view($account) {
return $this
->take($account);
}