function CourseObjectAccessTiming::see in Course 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/course/CourseObjectAccess/CourseObjectAccessTiming.php \Drupal\course\Plugin\course\CourseObjectAccess\CourseObjectAccessTiming::see()
- 3.x src/Plugin/course/CourseObjectAccess/CourseObjectAccessTiming.php \Drupal\course\Plugin\course\CourseObjectAccess\CourseObjectAccessTiming::see()
Overrides CourseObjectAccessPluginBase::see
File
- src/
Plugin/ course/ CourseObjectAccess/ CourseObjectAccessTiming.php, line 51
Class
- CourseObjectAccessTiming
- Plugin annotation @CourseObjectAccess( id = "timing", label = @Translation("Timing"), )
Namespace
Drupal\course\Plugin\course\CourseObjectAccessCode
function see($account) {
if (!$this
->isReleased() && $this
->getOption('release_hidden')) {
return FALSE;
}
if ($this
->isExpired() && $this
->getOption('expiration_hidden')) {
return FALSE;
}
}