Exemplo n.º 1
0
 /**
  * Form submission handler.
  * Adds Inputs to database.
  *
  * @param array $form
  *   An associative array containing the structure of the form.
  * @param \Drupal\Core\Form\FormStateInterface $form_state
  *   The current state of the form.
  */
 public function submitForm(array &$form, FormStateInterface $form_state)
 {
     $name = $form_state->getValue('name');
     DataController::addStueck($name);
     drupal_set_message(t('Play %play has been successfully created.', array('%play' => $name)));
     return;
 }