src/Contao/View/Contao2BackendView/TreeView.php
protected function saveTreeNodeStates(TreeNodeStates $states)
    {
        $sessionStorage = $this->getEnvironment()->getSessionStorage();
        $sessionStorage->set($this->getToggleId(), $states->getStates());
    }
protected function saveTreeNodeStates(TreeNodeStates $states)
    {
        $sessionStorage = $this->getEnvironment()->getSessionStorage();
        $sessionStorage->set($this->getToggleId(), $states->getStates());
    }
protected function saveTreeNodeStates ( TreeNodeStates $ states ) { $ sessionStorage = $ this -> getEnvironment ( ) -> getSessionStorage ( ) ; $ sessionStorage -> set ( $ this -> getToggleId ( ) , $ states -> getStates ( ) ) ; }
Save a tree node states instance to the session.

@param TreeNodeStates $states The instance to be saved.

@return void
Save a tree node states instance to the session .