src/preferences/PreferencesBase.js
function (data, id) {
            if (!data || !this.projectPath) {
                return;
            }

            if (data[this.projectPath] && (data[this.projectPath][id] !== undefined)) {
                return data[this.projectPath][id];
            }
            return;
        }
function (data, id) {
            if (!data || !this.projectPath) {
                return;
            }

            if (data[this.projectPath] && (data[this.projectPath][id] !== undefined)) {
                return data[this.projectPath][id];
            }
            return;
        }
function ( data , id ) { if ( ! data || ! this . projectPath ) { return ; } if ( data [ this . projectPath ] && ( data [ this . projectPath ] [ id ] !== undefined ) ) { return data [ this . projectPath ] [ id ] ; } return ; }
Retrieve the current value based on the current project path
in the layer.

@param {Object} data the preference data from the Scope
@param {string} id preference ID to look up
Retrieve the current value based on the current project path in the layer .