You are here

public function HeartbeatUpdateFeedForm::submitForm in Heartbeat 8

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides FormInterface::submitForm

File

src/Form/HeartbeatUpdateFeedForm.php, line 113

Class

HeartbeatUpdateFeedForm
Class HeartbeatUpdateFeedForm.

Namespace

Drupal\heartbeat\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {

  // Display result.
  foreach ($form_state
    ->getValues() as $key => $value) {
    drupal_set_message($key . ': ' . $value);
  }
  $form['#attached']['drupalSettings']['feedUpdate'] = 'timestamp';

  //    $this->updateFeed($form, $form_state);
  $this->triggered = true;
  $this
    ->buildForm($form, $form_state);
}