You are here

public function CourseObjectAccessPluginBase::getOption in Course 8.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/CourseObjectAccessPluginBase.php \Drupal\course\Plugin\CourseObjectAccessPluginBase::getOption()
  2. 3.x src/Plugin/CourseObjectAccessPluginBase.php \Drupal\course\Plugin\CourseObjectAccessPluginBase::getOption()
8 calls to CourseObjectAccessPluginBase::getOption()
CourseObjectAccessConditional::see in src/Plugin/course/CourseObjectAccess/CourseObjectAccessConditional.php
CourseObjectAccessConditional::take in src/Plugin/course/CourseObjectAccess/CourseObjectAccessConditional.php
CourseObjectAccessGrade::see in src/Plugin/course/CourseObjectAccess/CourseObjectAccessGrade.php
CourseObjectAccessGrade::take in src/Plugin/course/CourseObjectAccess/CourseObjectAccessGrade.php
CourseObjectAccessTiming::isExpired in src/Plugin/course/CourseObjectAccess/CourseObjectAccessTiming.php

... See full list

File

src/Plugin/CourseObjectAccessPluginBase.php, line 56

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;
  }
}