public function CourseObjectPoll::optionsDefinition in Course 3.x
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_poll/ src/ Plugin/ course/ CourseObject/ CourseObjectPoll.php, line 45
Class
- CourseObjectPoll
- Plugin annotation @CourseObject( id = "poll", label = "Poll", handlers = { "fulfillment" = "\Drupal\course_poll\Plugin\course\CourseObject\CourseObjectPollFulfillment" } )
Namespace
Drupal\course_poll\Plugin\course\CourseObjectCode
public function optionsDefinition() {
$options = parent::optionsDefinition();
$options['use_node_title'] = 1;
return $options;
}