You are here

function CourseObjectAccessConditional::optionsDefinition in Course 8.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/course/CourseObjectAccess/CourseObjectAccessConditional.php \Drupal\course\Plugin\course\CourseObjectAccess\CourseObjectAccessConditional::optionsDefinition()
  2. 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\CourseObjectAccess

Code

function optionsDefinition() {
  $defaults = parent::optionsDefinition();
  $defaults += array(
    'conditional_type' => NULL,
    'conditional_time' => NULL,
    'conditional_object' => NULL,
    'conditional_hidden' => NULL,
  );
  return $defaults;
}