You are here

public function NexxIntegration::buildForm in Thunder 8.4

Same name and namespace in other branches
  1. 8.2 src/Plugin/Thunder/OptionalModule/NexxIntegration.php \Drupal\thunder\Plugin\Thunder\OptionalModule\NexxIntegration::buildForm()
  2. 8.3 src/Plugin/Thunder/OptionalModule/NexxIntegration.php \Drupal\thunder\Plugin\Thunder\OptionalModule\NexxIntegration::buildForm()

Overrides AbstractOptionalModule::buildForm

File

src/Plugin/Thunder/OptionalModule/NexxIntegration.php, line 22

Class

NexxIntegration
Riddle integration.

Namespace

Drupal\thunder\Plugin\Thunder\OptionalModule

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form = parent::buildForm($form, $form_state);
  $form['nexx_integration']['description'] = [
    '#type' => 'item',
    '#markup' => $this
      ->t('Register a new account at <a href=":nexx_url" target="_blank">http://www.nexx.tv/thunder</a> and get a domain ID and an installation code. You can provide theme right here or at a later stage on the nexx Settings form', [
      ':nexx_url' => 'http://www.nexx.tv/thunder',
    ]),
  ];
  $form['nexx_integration']['omnia_id'] = [
    '#type' => 'textfield',
    '#title' => $this
      ->t('Domain ID'),
  ];
  $form['nexx_integration']['nexx_api_authkey'] = [
    '#type' => 'textfield',
    '#title' => $this
      ->t('Installation Code'),
  ];
  return $form;
}