You are here

public function CourseObjectTest::optionsDefinition in Course 3.x

Same name and namespace in other branches
  1. 8.3 modules/course_test/src/Plugin/course/CourseObject/CourseObjectTest.php \Drupal\course_test\Plugin\course\CourseObject\CourseObjectTest::optionsDefinition()
  2. 8.2 modules/course_test/src/Plugin/course/CourseObject/CourseObjectTest.php \Drupal\course_test\Plugin\course\CourseObject\CourseObjectTest::optionsDefinition()

Define configuration elements and their defaults.

Extended classes should call parent::optionsDefinition first to get the parent's configuration.

Overrides CourseObject::optionsDefinition

File

modules/course_test/src/Plugin/course/CourseObject/CourseObjectTest.php, line 26

Class

CourseObjectTest
Plugin annotation @CourseObject( id = "course_test_object", label = "Test course object", handlers = { "fulfillment" = "\Drupal\course_test\Plugin\course\CourseObject\CourseObjectTestFulfillment" } )

Namespace

Drupal\course_test\Plugin\course\CourseObject

Code

public function optionsDefinition() {
  $options = parent::optionsDefinition();
  $options['test_option'] = NULL;
  return $options;
}