You are here

public function CourseObjectAccessPluginBase::getOptions in Course 3.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/CourseObjectAccessPluginBase.php \Drupal\course\Plugin\CourseObjectAccessPluginBase::getOptions()
  2. 8.2 src/Plugin/CourseObjectAccessPluginBase.php \Drupal\course\Plugin\CourseObjectAccessPluginBase::getOptions()
6 calls to CourseObjectAccessPluginBase::getOptions()
CourseObjectAccessConditional::buildConfigurationForm in src/Plugin/course/CourseObjectAccess/CourseObjectAccessConditional.php
Define the form to be used in the object access settings area.
CourseObjectAccessGrade::buildConfigurationForm in src/Plugin/course/CourseObjectAccess/CourseObjectAccessGrade.php
Define the form to be used in the object access settings area.
CourseObjectAccessGrade::evaluate in src/Plugin/course/CourseObjectAccess/CourseObjectAccessGrade.php
Evaluate the access conditions.
CourseObjectAccessPluginBase::buildConfigurationForm in src/Plugin/CourseObjectAccessPluginBase.php
Define the form to be used in the object access settings area.
CourseObjectAccessPluginBase::getOption in src/Plugin/CourseObjectAccessPluginBase.php

... See full list

File

src/Plugin/CourseObjectAccessPluginBase.php, line 43

Class

CourseObjectAccessPluginBase
Base class for Course object access plugins.

Namespace

Drupal\course\Plugin

Code

public function getOptions() {
  $plugins = $this
    ->getCourseObject()
    ->getOption('plugins');
  if (isset($plugins['access'][$this->pluginId])) {
    return $plugins['access'][$this->pluginId];
  }
  else {
    return $this
      ->optionsDefinition();
  }
}