public function CourseObjectCommerce::optionsForm in Course 3.x
Default options form for all course objects.
Overrides CourseObject::optionsForm
File
- modules/
course_commerce/ src/ Plugin/ course/ CourseObject/ CourseObjectCommerce.php, line 70
Class
- CourseObjectCommerce
- Plugin annotation @CourseObject( id = "commerce", label = "Payment", )
Namespace
Drupal\course_commerce\Plugin\course\CourseObjectCode
public function optionsForm(&$form, FormStateInterface $form_state) {
parent::optionsForm($form, $form_state);
$form['node']['instance']['#title'] = t('Product to check');
$form['node']['instance']['#description'] .= '</br>' . t('Use an existing ubercart-enabled product for checking payment. Defaults to this course.');
}