public function handleBackActions(): void
    {
        if (!$this->request->getSession()->check('back_action')) {
            $this->request->getSession()->write('back_action', []);
        }
        if (!empty($this->request->getQuery('back_action'))) {
            $requestedBackAction = $this->request->getQuery('back_action');
            $requestedAction = $this->getRequestedAction();

            if (!$this->request->getSession()->check('back_action.' . $requestedBackAction)
                || ($this->request->getSession()->check('back_action.' . $requestedBackAction)
                    && $this->request->getSession()->read('back_action.' . $requestedBackAction) != $requestedAction
                )
                && !$this->request->getSession()->check('back_action.' . $requestedAction)
            ) {
                $this->request->getSession()->write('back_action.' . $requestedAction, $requestedBackAction);
            }
        }
    }
public function handleBackActions(): void
    {
        if (!$this->request->getSession()->check('back_action')) {
            $this->request->getSession()->write('back_action', []);
        }
        if (!empty($this->request->getQuery('back_action'))) {
            $requestedBackAction = $this->request->getQuery('back_action');
            $requestedAction = $this->getRequestedAction();

            if (!$this->request->getSession()->check('back_action.' . $requestedBackAction)
                || ($this->request->getSession()->check('back_action.' . $requestedBackAction)
                    && $this->request->getSession()->read('back_action.' . $requestedBackAction) != $requestedAction
                )
                && !$this->request->getSession()->check('back_action.' . $requestedAction)
            ) {
                $this->request->getSession()->write('back_action.' . $requestedAction, $requestedBackAction);
            }
        }
    }
public function handleBackActions ( ) : void { if ( ! $ this -> request -> getSession ( ) -> check ( 'back_action' ) ) { $ this -> request -> getSession ( ) -> write ( 'back_action' , [ ] ) ; } if ( ! empty ( $ this -> request -> getQuery ( 'back_action' ) ) ) { $ requestedBackAction = $ this -> request -> getQuery ( 'back_action' ) ; $ requestedAction = $ this -> getRequestedAction ( ) ; if ( ! $ this -> request -> getSession ( ) -> check ( 'back_action.' . $ requestedBackAction ) || ( $ this -> request -> getSession ( ) -> check ( 'back_action.' . $ requestedBackAction ) && $ this -> request -> getSession ( ) -> read ( 'back_action.' . $ requestedBackAction ) != $ requestedAction ) && ! $ this -> request -> getSession ( ) -> check ( 'back_action.' . $ requestedAction ) ) { $ this -> request -> getSession ( ) -> write ( 'back_action.' . $ requestedAction , $ requestedBackAction ) ; } } }
persists requested back actions with their context in session

@return void
persists requested back actions with their context in session