/**
* Sets the test flag in the session test bag.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* The request object.
*
* @return \Symfony\Component\HttpFoundation\Response
* The response object.
*/
public function setSessionBagFlag(Request
$request) { /** @var \Drupal\session_test\Session\TestSessionBag */
$bag =
$request->
getSession()->
getBag(TestSessionBag::BAG_NAME
);
$bag->
setFlag();
return new Response();
} /**
* Clears the test flag from the session test bag.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* The request object.
*
* @return \Symfony\Component\HttpFoundation\Response
* The response object.
*/