3 namespace Drupal\session_test\Form;
5 use Drupal\Component\Utility\SafeMarkup;
6 use Drupal\Core\Form\FormBase;
7 use Drupal\Core\Form\FormStateInterface;
10 * Form controller for the test config edit forms.
12 class SessionTestForm extends FormBase {
17 public function getFormId() {
18 return 'session_test_form';
24 public function buildForm(array $form, FormStateInterface $form_state) {
26 '#type' => 'textfield',
31 $form['actions'] = ['#type' => 'actions'];
32 $form['actions']['submit'] = [
43 public function submitForm(array &$form, FormStateInterface $form_state) {
44 drupal_set_message(SafeMarkup::format('Ok: @input', ['@input' => $form_state->getValue('input')]));