function CourseObjectAccessConditional::optionsDefinition in Course 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/course/CourseObjectAccess/CourseObjectAccessConditional.php \Drupal\course\Plugin\course\CourseObjectAccess\CourseObjectAccessConditional::optionsDefinition()
- 3.x src/Plugin/course/CourseObjectAccess/CourseObjectAccessConditional.php \Drupal\course\Plugin\course\CourseObjectAccess\CourseObjectAccessConditional::optionsDefinition()
Overrides CourseObjectAccessPluginBase::optionsDefinition
File
- src/
Plugin/ course/ CourseObjectAccess/ CourseObjectAccessConditional.php, line 76
Class
- CourseObjectAccessConditional
- Plugin annotation @CourseObjectAccess( id = "conditional", label = @Translation("Conditional"), )
Namespace
Drupal\course\Plugin\course\CourseObjectAccessCode
function optionsDefinition() {
$defaults = parent::optionsDefinition();
$defaults += array(
'conditional_type' => NULL,
'conditional_time' => NULL,
'conditional_object' => NULL,
'conditional_hidden' => NULL,
);
return $defaults;
}