You are here

public function CourseObjectUbercart::optionsForm in Course 3.x

Default options form for all course objects.

Overrides CourseObject::optionsForm

File

modules/course_uc/src/Plugin/course/CourseObject/CourseObjectUbercart.php, line 59

Class

CourseObjectUbercart
Plugin annotation @CourseObject( id = "ubercart", label = "Payment", )

Namespace

Drupal\course_uc\Plugin\course\CourseObject

Code

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.');
}