/** * Gets a code for when the user is persisted to a cookie or session which identifies the user. * @return string */ public function getPersistCode() { if (!$this->persist_code) { return parent::getPersistCode(); } return $this->persist_code; }
/** * Gets a code for when the user is persisted to a cookie or session which identifies the user. * @return string */ public function getPersistCode() { // Option A: @todo config // return parent::getPersistCode(); // Option B: if (!$this->persist_code) { return parent::getPersistCode(); } return $this->persist_code; }
/** * Gets a code for when the user is persisted to a cookie or session which identifies the user. * @return string */ public function getPersistCode() { $block = UserSettings::get('block_persistence', false); if ($block || !$this->persist_code) { return parent::getPersistCode(); } return $this->persist_code; }