private function loadSettings(SettingsOwnerInterface $owner = null)
    {
        // Global settings
        if ($this->globalSettings === null) {
            $this->globalSettings = $this->getSettingsFromRepository();
        }

        // User settings
        if ($owner !== null && ($this->ownerSettings === null || !array_key_exists(
                    $owner->getSettingIdentifier(),
                    $this->ownerSettings
                ))
        ) {
            $this->ownerSettings[$owner->getSettingIdentifier()] = $this->getSettingsFromRepository($owner);
        }

        return $this;
    }
private function loadSettings(SettingsOwnerInterface $owner = null)
    {
        // Global settings
        if ($this->globalSettings === null) {
            $this->globalSettings = $this->getSettingsFromRepository();
        }

        // User settings
        if ($owner !== null && ($this->ownerSettings === null || !array_key_exists(
                    $owner->getSettingIdentifier(),
                    $this->ownerSettings
                ))
        ) {
            $this->ownerSettings[$owner->getSettingIdentifier()] = $this->getSettingsFromRepository($owner);
        }

        return $this;
    }
private function loadSettings ( SettingsOwnerInterface $ owner = null ) { // Global settings if ( $ this -> globalSettings === null ) { $ this -> globalSettings = $ this -> getSettingsFromRepository ( ) ; } // User settings if ( $ owner !== null && ( $ this -> ownerSettings === null || ! array_key_exists ( $ owner -> getSettingIdentifier ( ) , $ this -> ownerSettings ) ) ) { $ this -> ownerSettings [ $ owner -> getSettingIdentifier ( ) ] = $ this -> getSettingsFromRepository ( $ owner ) ; } return $ this ; }
Settings lazy loading.

@param SettingsOwnerInterface|null $owner

@return SettingsManager
Settings lazy loading .