public function CourseObjectTest::optionsDefinition in Course 3.x
Same name and namespace in other branches
- 8.3 modules/course_test/src/Plugin/course/CourseObject/CourseObjectTest.php \Drupal\course_test\Plugin\course\CourseObject\CourseObjectTest::optionsDefinition()
- 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\CourseObjectCode
public function optionsDefinition() {
$options = parent::optionsDefinition();
$options['test_option'] = NULL;
return $options;
}