You are here

public function CourseObjectAccessTiming::optionsDefinition in Course 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/course/CourseObjectAccess/CourseObjectAccessTiming.php \Drupal\course\Plugin\course\CourseObjectAccess\CourseObjectAccessTiming::optionsDefinition()
  2. 3.x src/Plugin/course/CourseObjectAccess/CourseObjectAccessTiming.php \Drupal\course\Plugin\course\CourseObjectAccess\CourseObjectAccessTiming::optionsDefinition()

Overrides CourseObjectAccessPluginBase::optionsDefinition

File

src/Plugin/course/CourseObjectAccess/CourseObjectAccessTiming.php, line 16

Class

CourseObjectAccessTiming
Plugin annotation @CourseObjectAccess( id = "timing", label = @Translation("Timing"), )

Namespace

Drupal\course\Plugin\course\CourseObjectAccess

Code

public function optionsDefinition() {
  $defaults = parent::optionsDefinition();
  $defaults += array(
    'duration' => NULL,
    'release' => NULL,
    'expiration' => NULL,
    'release_hidden' => NULL,
    'expiration_hidden' => NULL,
  );
  return $defaults;
}