You are here

public function CourseObjectAccessPluginBase::view in Course 3.x

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

Can the user view the object but not interact?

Parameters

type $account:

Return value

boolean

2 methods override CourseObjectAccessPluginBase::view()
CourseObjectAccessConditional::view in src/Plugin/course/CourseObjectAccess/CourseObjectAccessConditional.php
Can the user view the object but not interact?
CourseObjectAccessTiming::view in src/Plugin/course/CourseObjectAccess/CourseObjectAccessTiming.php
Can the user view the object but not interact?

File

src/Plugin/CourseObjectAccessPluginBase.php, line 101

Class

CourseObjectAccessPluginBase
Base class for Course object access plugins.

Namespace

Drupal\course\Plugin

Code

public function view($account) {
  return TRUE;
}