code: public function getShowUnpublished()
      {
          if (!$this->cookiesLoaded) {
              $key = $this->cookiePrefix . 'show_unpublished';
              $queuedCookie = \Cookie::queued($key, null);
              $showUnpublished = $queuedCookie != null ? $queuedCookie->getValue() : \Cookie::get($key, false);
              $this->useDB = $showUnpublished ? 2 : 1;
              $this->cookiesLoaded = true;
          }
          return $this->useDB === 2;
      }
docs: Get the default showUnpublished being used.
  
  @return boolean