SessionExampleForm::$session

Same name in other branches
  1. 8.x-1.x session_example/src/Form/SessionExampleForm.php \Drupal\session_example\Form\SessionExampleForm::session
  2. 4.0.x modules/session_example/src/Form/SessionExampleForm.php \Drupal\session_example\Form\SessionExampleForm::session

The session object.

We will use this to store information that the user submits, so that it persists across requests.

Type: \Symfony\Component\HttpFoundation\Session\SessionInterface

File

modules/session_example/src/Form/SessionExampleForm.php, line 33

Class

SessionExampleForm
Form to allow the user to store information in their session.

Namespace

Drupal\session_example\Form

Code

protected $session;