Beispiel #1
0
 /**
  * Check if "Remember Me" checked
  *
  * @return bool
  */
 public function isRememberMeChecked()
 {
     if (is_null($this->_isRememberMeChecked)) {
         //Try to get from checkout session
         $isRememberMeChecked = $this->_checkoutSession->getRememberMeChecked();
         if (!is_null($isRememberMeChecked)) {
             $this->_isRememberMeChecked = $isRememberMeChecked;
             $this->_checkoutSession->unsRememberMeChecked();
             return $isRememberMeChecked;
         }
         return $this->_persistentData->isEnabled() && $this->_persistentData->isRememberMeEnabled() && $this->_persistentData->isRememberMeCheckedDefault();
     }
     return (bool) $this->_isRememberMeChecked;
 }