Drupal 8  8.0.2
SessionTestController Class Reference
Inheritance diagram for SessionTestController:

Public Member Functions

 get ()
 
 getFromSessionObject (Request $request)
 
 getId (Request $request)
 
 getIdFromCookie (Request $request)
 
 set ($test_value)
 
 noSet ($test_value)
 
 setMessage ()
 
 setMessageButDontSave ()
 
 isLoggedIn ()
 
 traceHandler (Request $request)
 
 getSession (Request $request)
 
 setSession (Request $request, $test_value)
 

Detailed Description

Controller providing page callbacks for the action admin interface.

Member Function Documentation

get ( )

Prints the stored session value to the screen.

Returns
string A notification message.

References t().

Here is the call graph for this function:

getFromSessionObject ( Request  $request)

Prints the stored session value to the screen.

Parameters
\Symfony\Component\HttpFoundation\Request$requestThe incoming request.
Returns
string A notification message.

References t().

Here is the call graph for this function:

getId ( Request  $request)

Print the current session ID.

Parameters
\Symfony\Component\HttpFoundation\Request$requestThe incoming request.
Returns
string A notification message with session ID.
getIdFromCookie ( Request  $request)

Print the current session ID as read from the cookie.

Parameters
\Symfony\Component\HttpFoundation\Request$requestThe request object.
Returns
string A notification message with session ID.
getSession ( Request  $request)

Returns the values stored in the active session and the user ID.

Parameters
\Symfony\Component\HttpFoundation\Request$requestThe request object.
Returns
A response object containing the session values and the user ID.

References Drupal\currentUser().

Here is the call graph for this function:

isLoggedIn ( )

Only available if current user is logged in.

Returns
string A notification message.

References t().

Here is the call graph for this function:

noSet (   $test_value)

Turns off session saving and then tries to save a value anyway.

Parameters
string$test_valueA session value.
Returns
string A notification message.

References Drupal\service(), SessionTestController\set(), and t().

Here is the call graph for this function:

set (   $test_value)

Stores a value in $_SESSION['session_test_value'].

Parameters
string$test_valueA session value.
Returns
string A notification message.

References t().

Referenced by SessionTestController\noSet().

Here is the call graph for this function:

Here is the caller graph for this function:

setMessage ( )

Sets a message to me displayed on the following page.

Returns
string A notification message.

References t().

Referenced by SessionTestController\setMessageButDontSave().

Here is the call graph for this function:

Here is the caller graph for this function:

setMessageButDontSave ( )

Sets a message but call drupal_save_session(FALSE).

Returns
string A notification message.

References Drupal\service(), and SessionTestController\setMessage().

Here is the call graph for this function:

setSession ( Request  $request,
  $test_value 
)

Sets a test value on the session.

Parameters
\Symfony\Component\HttpFoundation\Request$requestThe request object.
string$test_valueA value to set on the session.
Returns
A response object containing the session values and the user ID.

References Drupal\currentUser().

Here is the call graph for this function:

traceHandler ( Request  $request)

Returns the trace recorded by test proxy session handlers as JSON.

Parameters
\Symfony\Component\HttpFoundation\Request$requestThe incoming request.
Returns
The response.

References Drupal\service().

Here is the call graph for this function:


The documentation for this class was generated from the following file: