You are here

public function CourseObjectAccessPluginBase::getOption in Course 3.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/CourseObjectAccessPluginBase.php \Drupal\course\Plugin\CourseObjectAccessPluginBase::getOption()
  2. 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?

... See full list

File

src/Plugin/CourseObjectAccessPluginBase.php, line 53

Class

CourseObjectAccessPluginBase
Base class for Course object access plugins.

Namespace

Drupal\course\Plugin

Code

public function getOption($option) {
  $options = $this
    ->getOptions();
  if (isset($options[$option])) {
    return $options[$option];
  }
  else {
    return NULL;
  }
}