You are here

public function RiddleIntegration::buildForm in Thunder 8.4

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

Overrides AbstractOptionalModule::buildForm

File

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

Class

RiddleIntegration
Riddle integration.

Namespace

Drupal\thunder\Plugin\Thunder\OptionalModule

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form = parent::buildForm($form, $form_state);
  $form['thunder_riddle']['riddle_token'] = [
    '#type' => 'textfield',
    '#title' => $this
      ->t('Riddle token'),
    '#description' => $this
      ->t('Register a new account at <a href=":riddle" target="_blank">riddle.com</a> and get a token from the Account->Plugins page (you may need to reset to get the first token). To get a free riddle basic account use this voucher "THUNDER_3eX4_freebasic".', [
      ':riddle' => 'http://www.riddle.com',
    ]),
  ];
  return $form;
}