skeeks\cms\traits\HasComponentDbSettingsTrait::getSettingsId PHP Method

getSettingsId() public method

Returns the ID of the widget.
public getSettingsId ( boolean $autoGenerate = true ) : string
$autoGenerate boolean whether to generate an ID if it is not set previously
return string ID of the widget.
    public function getSettingsId($autoGenerate = true)
    {
        if ($autoGenerate && $this->_settingsId === null) {
            $this->_settingsId = static::$autoSettingsIdPrefix . static::$counterSettings++;
        }
        return $this->_settingsId;
    }