You are here

protected property SessionExampleForm::$session in Examples for Developers 3.x

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