Ublaboo\DataGrid\DataGrid::getSessionData PHP Method

getSessionData() public method

Get session data if functionality is enabled
public getSessionData ( string $key = NULL, $default_value = NULL ) : mixed
$key string
return mixed
    public function getSessionData($key = NULL, $default_value = NULL)
    {
        if (!$this->remember_state) {
            return $key ? $default_value : [];
        }
        return $key ? $this->grid_session->{$key} : $this->grid_session ?: $default_value;
    }
DataGrid