public function CourseObjectCertificate::optionsDefinition in Course 8.2
Same name and namespace in other branches
- 8.3 modules/course_certificate/src/Plugin/course/CourseObject/CourseObjectCertificate.php \Drupal\course_certificate\Plugin\course\CourseObject\CourseObjectCertificate::optionsDefinition()
- 3.x modules/course_certificate/src/Plugin/course/CourseObject/CourseObjectCertificate.php \Drupal\course_certificate\Plugin\course\CourseObject\CourseObjectCertificate::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_certificate/ src/ Plugin/ course/ CourseObject/ CourseObjectCertificate.php, line 29
Class
- CourseObjectCertificate
- Plugin annotation @CourseObject( id = "certificate", label = "Certificate", handlers = { "fulfillment" = "\Drupal\course\Entity\CourseObjectFulfillment" } )
Namespace
Drupal\course_certificate\Plugin\course\CourseObjectCode
public function optionsDefinition() {
$options = parent::optionsDefinition();
$options['required'] = 0;
$options['certificate_node'] = 1;
return $options;
}