Frontend\Modules\Profiles\Engine\Profile::setSetting PHP Method

setSetting() public method

Set a profile setting.
public setSetting ( string $name, string $value )
$name string Setting name.
$value string New setting value.
    public function setSetting($name, $value)
    {
        // make sure we have the current settings in cache
        $this->getSettings();
        // set setting
        FrontendProfilesModel::setSetting($this->getId(), (string) $name, $value);
        // add setting to cache
        $this->settings[$name] = $value;
    }