public function CourseObjectAccessPluginBase::getOption in Course 3.x
Same name and namespace in other branches
- 8.3 src/Plugin/CourseObjectAccessPluginBase.php \Drupal\course\Plugin\CourseObjectAccessPluginBase::getOption()
- 8.2 src/Plugin/CourseObjectAccessPluginBase.php \Drupal\course\Plugin\CourseObjectAccessPluginBase::getOption()
9 calls to CourseObjectAccessPluginBase::getOption()
- CourseObjectAccessConditional::see in src/
Plugin/ course/ CourseObjectAccess/ CourseObjectAccessConditional.php - Can the user see the object in the outline?
- CourseObjectAccessConditional::take in src/
Plugin/ course/ CourseObjectAccess/ CourseObjectAccessConditional.php - Can the user take the object?
- CourseObjectAccessGrade::evaluate in src/
Plugin/ course/ CourseObjectAccess/ CourseObjectAccessGrade.php - Evaluate the access conditions.
- CourseObjectAccessPluginBase::alterOptions in src/
Plugin/ CourseObjectAccessPluginBase.php - Alter a property during display/tracking. Does not affect the stored options. This is called in CourseObject::getReadOnlyOptions().
- CourseObjectAccessPluginBase::take in src/
Plugin/ CourseObjectAccessPluginBase.php - Can the user take the object?
File
- src/
Plugin/ CourseObjectAccessPluginBase.php, line 53
Class
- CourseObjectAccessPluginBase
- Base class for Course object access plugins.
Namespace
Drupal\course\PluginCode
public function getOption($option) {
$options = $this
->getOptions();
if (isset($options[$option])) {
return $options[$option];
}
else {
return NULL;
}
}