You are here

protected property SessionExampleForm::$session in Examples for Developers 8

Same name and namespace in other branches
  1. 3.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

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;